Skip to content

Commit 90f9c4a

Browse files
committed
fix: 🐛 fix jest.config
1 parent eeec5fb commit 90f9c4a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

jest.config.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
module.exports = {
22
preset: 'ts-jest',
33
testEnvironment: 'node',
4-
globals: {
5-
'ts-jest': {
6-
tsConfig: '<rootDir>/tsconfig.json',
7-
diagnostics: false,
8-
},
4+
transform: {
5+
"^.+\\.(t|j)s$": ["ts-jest", {
6+
tsconfig: "tsconfig.json"
7+
}]
98
},
109
moduleFileExtensions: ['ts', 'js', 'json', 'node'],
1110
roots: ['<rootDir>/test/'],

0 commit comments

Comments
 (0)