Skip to content

Commit

Permalink
update config.
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlieGreenman committed Oct 25, 2023
1 parent cd0e440 commit 1e7fb98
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ module.exports = {
preset: 'ts-jest/presets/default-esm',
testEnvironment: 'node',
transform: {
'^.+\\.(ts|js)$': ['ts-jest', {useESM: true, diagnostics: false}]
'^.+\\.(ts|js)$': ['ts-jest', { useESM: true, diagnostics: false }],
},
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(t|j)s$',
moduleFileExtensions: ['ts', 'js', 'json', 'node'],
globals: {
'ts-jest': {
skipBabel: true, // This is the equivalent of skipLibCheck: true
skipBabel: true,
transform: {
'^.+\\.(ts|js)$': ['ts-jest', { useESM: true, diagnostics: false }],
},
},
},
};

0 comments on commit 1e7fb98

Please sign in to comment.