Skip to content

Commit

Permalink
Add moduleNameMapper to Jest config
Browse files Browse the repository at this point in the history
This fixes the errors caused by .js imports
  • Loading branch information
mcintyre94 committed Jun 4, 2024
1 parent d947eca commit 739189b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
moduleNameMapper: {
'^(\\./.+|\\../.+).js$': '$1',
},
};

0 comments on commit 739189b

Please sign in to comment.