diff --git a/jest.config.js b/jest.config.js index 6adf745..08a9699 100644 --- a/jest.config.js +++ b/jest.config.js @@ -2,13 +2,16 @@ module.exports = { preset: 'ts-jest/presets/default-esm', testEnvironment: 'node', transform: { - '^.+\\.(ts|js)$': ['ts-jest', {useESM: true, diagnostics: false}] + '^.+\\.(ts|js)$': ['ts-jest', { useESM: true, diagnostics: false }], }, testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(t|j)s$', moduleFileExtensions: ['ts', 'js', 'json', 'node'], globals: { 'ts-jest': { - skipBabel: true, // This is the equivalent of skipLibCheck: true + skipBabel: true, + transform: { + '^.+\\.(ts|js)$': ['ts-jest', { useESM: true, diagnostics: false }], + }, }, }, };