Files
tcb_devportal/jest.config.js
duynguyen c90a36a54f
Some checks failed
homelab-k8s-services/tcb_devportal/pipeline/head There was a failure building this commit
feat: initial commit — tcb_devportal Next.js app
Includes Helm chart (tcb-devportal), Jenkinsfile with homelab CI pipeline,
and Next.js app source.
2026-05-10 14:49:10 +07:00

29 lines
733 B
JavaScript

/* eslint-disable @typescript-eslint/no-require-imports */
const nextJest = require('next/jest')
const createJestConfig = (nextJest.default || nextJest)({ dir: './' })
const customJestConfig = {
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
testEnvironment: 'jest-environment-jsdom',
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
},
transformIgnorePatterns: [
'/node_modules/(?!next-intl/.*)',
],
testMatch: [
'**/_tests/**/*.test.ts',
'**/_tests/**/*.test.tsx',
'**/_tests_/**/*.test.ts',
'**/_tests_/**/*.test.tsx',
],
collectCoverageFrom: [
'src/**/*.{ts,tsx}',
'!src/**/*.d.ts',
'!src/**/*.stories.tsx',
],
}
module.exports = createJestConfig(customJestConfig)