Skip to content

Commit

Permalink
Remove warning caused by deprecated 'transform' section in Jest config (
Browse files Browse the repository at this point in the history
#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".
```
  • Loading branch information
Toilal authored and alexjoverm committed Jan 29, 2019
1 parent 86c4efc commit 5aa6a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
},
"jest": {
"transform": {
".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
".(ts|tsx)": "ts-jest"
},
"testEnvironment": "node",
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
Expand Down

0 comments on commit 5aa6a84

Please sign in to comment.