0645bc0462
Agent-Logs-Url: https://github.com/christianlouis/InboxConverge/sessions/53f8deb9-5c3a-4940-a058-c8ee7e4104e0 Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
23 lines
521 B
JavaScript
23 lines
521 B
JavaScript
const nextJest = require('next/jest');
|
|
|
|
const createJestConfig = nextJest({
|
|
dir: './',
|
|
});
|
|
|
|
const customJestConfig = {
|
|
testEnvironment: 'jest-environment-jsdom',
|
|
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',
|
|
],
|
|
};
|
|
|
|
module.exports = createJestConfig(customJestConfig);
|