diff --git a/jest.config.js b/jest.config.js index 4223a4f..17320ad 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,8 +1,13 @@ /** @type {import('ts-jest').JestConfigWithTsJest} */ module.exports = { preset: 'ts-jest/presets/js-with-ts-esm', + globals: { + 'ts-jest': { + useESM: true, + }, + }, + moduleNameMapper: { + '^(\\.{1,2}/.*)\\.js$': '$1', + }, testEnvironment: 'node', - - // Automatically clear mock calls, instances, contexts and results before every test - clearMocks: true, };