fix: convert jest.config.js to jest.config.mjs (ES module syntax)

Agent-Logs-Url: https://github.com/christianlouis/InboxConverge/sessions/6e25705d-50db-4b0c-969c-1be4cb3f1745

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-28 23:27:56 +00:00
parent b866627937
commit 0a0836e993
3 changed files with 9 additions and 2 deletions
+22
View File
@@ -0,0 +1,22 @@
import nextJest from 'next/jest.js';
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',
],
};
export default createJestConfig(customJestConfig);