diff --git a/jest.config.mjs b/jest.config.mjs index 634dc53..b3e3b3f 100644 --- a/jest.config.mjs +++ b/jest.config.mjs @@ -75,6 +75,9 @@ const config = { 'jest-extended/all', '/tests/setupAfterEnv.ts' ], + moduleNameMapper: { + "^(\\.{1,2}/.*)\\.js$": "$1", + }, extensionsToTreatAsEsm: ['.ts', '.tsx', '.mts'], };