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 Apr 24, 2023
1 parent a4b6b26 commit e737b67
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,12 +1,14 @@
module.exports = {
globals: {
'ts-jest': {
diagnostics: false,
isolatedModules: true,
},
},
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['./src/', './test/'],
moduleFileExtensions: ['ts', 'js'],
transform: {
'^.+\\.ts$': [
'ts-jest',
{
diagnostics: false,
isolatedModules: true,
},
],
},
}

0 comments on commit e737b67

Please sign in to comment.