/** @type {import('ts-jest').JestConfigWithTsJest} */ module.exports = { preset: 'ts-jest', testEnvironment: 'node', roots: ['/tests'], testMatch: ['**/performance/**/*.test.ts', '**/*.performance.test.ts'], collectCoverage: false, verbose: true, transform: { '^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.json', useESM: false, }], }, moduleNameMapper: { '^@/(.*)$': '/src/$1', }, moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], setupFilesAfterEnv: ['/tests/setup.ts'], testTimeout: 30000, clearMocks: true, restoreMocks: true, modulePathIgnorePatterns: [ '/bin/', '/dist/', '/node_modules/' ] };