Skip to content

Commit

Permalink
test: enabled moduleNameMapper to drop extensions during imports to…
Browse files Browse the repository at this point in the history
… allow tests to import other test files
  • Loading branch information
CMCDragonkai committed Aug 12, 2023
1 parent 03e8a8e commit 7244adc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ const config = {
'jest-extended/all',
'<rootDir>/tests/setupAfterEnv.ts'
],
moduleNameMapper: {
"^(\\.{1,2}/.*)\\.js$": "$1",
},
extensionsToTreatAsEsm: ['.ts', '.tsx', '.mts'],
};

Expand Down

0 comments on commit 7244adc

Please sign in to comment.