Skip to content

Commit f625c57

Browse files
chore: use 'transform' for the ts-jest config
They've deprecated the 'globals' way of setting options. Refs kulshekhar/ts-jest#3780
1 parent 2ea9bea commit f625c57

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

jest.config.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
module.exports = {
2-
globals: {
3-
'ts-jest': {
4-
diagnostics: false,
5-
isolatedModules: true,
6-
},
7-
},
82
injectGlobals: false,
9-
preset: 'ts-jest',
103
testEnvironment: 'node',
114
roots: ['./src/', './test/'],
125
moduleFileExtensions: ['ts', 'js'],
6+
transform: {
7+
'^.+\\.ts$': [
8+
'ts-jest',
9+
{
10+
diagnostics: false,
11+
isolatedModules: true,
12+
},
13+
],
14+
},
1315
}

0 commit comments

Comments
 (0)