jest.config.js (520B)
1 /** @type {import('ts-jest').JestConfigWithTsJest} */ 2 const jestConfig = { 3 extensionsToTreatAsEsm: ['.ts'], 4 moduleNameMapper: { 5 '^(\\.{1,2}/.*)\\.js$': '$1', 6 }, 7 //clearMocks: true, 8 //moduleFileExtensions: ['js', 'ts'], 9 testMatch: ['**/*.test.ts'], 10 transform: { 11 '^.+\\.m?[tj]sx?$': [ 12 'ts-jest', 13 { 14 useESM: true, 15 tsconfig: "./tsconfig.test.json" 16 } 17 ] 18 }, 19 verbose: true 20 }; 21 export default jestConfig;