Skip to content

Commit

Permalink
Use 'transform' for the ts-jest config
Browse files Browse the repository at this point in the history
They've deprecated the 'globals' way of setting options.

Refs #388, kulshekhar/ts-jest#3780
  • Loading branch information
thewilkybarkid committed Oct 26, 2022
1 parent abc27e1 commit 400d485
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions jest.config.js
@@ -1,13 +1,15 @@
module.exports = {
globals: {
'ts-jest': {
diagnostics: false,
isolatedModules: true,
},
},
injectGlobals: false,
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['./src/', './test/'],
moduleFileExtensions: ['js', 'ts'],
transform: {
'^.+\\.ts$': [
'ts-jest',
{
diagnostics: false,
isolatedModules: true,
},
],
},
}

0 comments on commit 400d485

Please sign in to comment.