63839c3886
Agent-Logs-Url: https://github.com/christianlouis/InboxConverge/sessions/6b527e29-8e26-4f86-88e2-847687f759ad Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
25 lines
598 B
JavaScript
25 lines
598 B
JavaScript
import nextJest from 'next/jest.js';
|
|
|
|
const createJestConfig = nextJest({
|
|
dir: './',
|
|
});
|
|
|
|
const customJestConfig = {
|
|
testEnvironment: 'jest-environment-jsdom',
|
|
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
|
},
|
|
testMatch: ['**/*.test.(ts|tsx|js|jsx)', '**/*.test.ts', '**/*.test.tsx'],
|
|
collectCoverageFrom: [
|
|
'src/**/*.{ts,tsx}',
|
|
'!src/**/*.d.ts',
|
|
'!src/**/layout.tsx',
|
|
'!src/**/page.tsx',
|
|
'!src/instrumentation.ts',
|
|
'!src/test-setup.ts',
|
|
],
|
|
};
|
|
|
|
export default createJestConfig(customJestConfig);
|