/** @type {import('jest').Config} */ module.exports = { preset: 'ts-jest', testEnvironment: 'node', testMatch: ['**/tests/unit/**/*.test.ts', '**/tests/integration/**/*.test.ts'], transform: { '^.+\\.tsx?$': ['ts-jest', { tsconfig: { // Reuse main tsconfig but include tests and relax for test env target: 'ES2020', module: 'commonjs', lib: ['ES2020', 'DOM'], strict: true, esModuleInterop: true, skipLibCheck: true, moduleResolution: 'node', resolveJsonModule: true, allowSyntheticDefaultImports: true, // Relax unused-var rules in tests noUnusedLocals: false, noUnusedParameters: false, }, }], }, testTimeout: 60000, };