Skip to content

Commit 5aa6a84

Browse files
Toilalalexjoverm
authored andcommitted
Remove warning caused by deprecated 'transform' section in Jest config (#253)
``` ts-jest[main] (WARN) Replace any occurrences of "ts-jest/dist/preprocessor.js" or "<rootDir>/node_modules/ts-jest/preprocessor.js" in the 'transform' section of your Jest config with just "ts-jest". ```
1 parent 86c4efc commit 5aa6a84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
},
4949
"jest": {
5050
"transform": {
51-
".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
51+
".(ts|tsx)": "ts-jest"
5252
},
5353
"testEnvironment": "node",
5454
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",

0 commit comments

Comments
 (0)