-
Notifications
You must be signed in to change notification settings - Fork 492
Update ts-jest 22.0.1 -> 23.10.3 #410
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey!
Thanks for your PR.
In the latest version you need to update file https://github.com/wmonk/create-react-app-typescript/blob/master/scripts/utils/createJestConfig.js#L67 to
"tsConfig": paths.appTsTestConfig
Please update this template as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to create the same PR.
Also it requires to chage:
'^.+\\.tsx?$': resolve('config/jest/typescriptTransform.js'),
to just
"^.+\\.tsx?$": "ts-jest",
according to this warning
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".
We've used the custom typescript transform file as a wrapper for Just one issue left: |
@DorianGrey Also we have to remove |
Update ts-jest version from 22.0.1 to 23.10.3
#399