Skip to content

Commit

Permalink
chore: 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 kulshekhar/ts-jest#3780
  • Loading branch information
thewilkybarkid committed Mar 6, 2023
1 parent 213dddc commit 44e321f
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
module.exports = {
globals: {
'ts-jest': {
diagnostics: false,
isolatedModules: true,
},
},
injectGlobals: false,
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['./src/', './test/'],
moduleFileExtensions: ['ts', 'js'],
transform: {
'^.+\\.ts$': [
'ts-jest',
{
diagnostics: false,
isolatedModules: true,
},
],
},
}

0 comments on commit 44e321f

Please sign in to comment.