Skip to content

Commit

Permalink
modify jest.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kenfdev committed Oct 12, 2022
1 parent 6fcdcda commit eb2e045
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -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,
};

0 comments on commit eb2e045

Please sign in to comment.