This repository was archived by the owner on Jan 26, 2019. It is now read-only.
This repository was archived by the owner on Jan 26, 2019. It is now read-only.
Use 'typescript-babel-jest' for jest tsx transform #97
Closed
Description
Hi, I have ejected version of cra and had some issues with configuration for jest.
After about 3 hours trying to chain compilation of babel
and typescript
I just found typescript-babel-jest
. Zero configuration drop-in replacement.
I just changed "^.+\\.tsx?$": "<rootDir>/config/jest/typescriptTransform.js",
with "^.+\\.tsx?$": "typescript-babel-jest",
in my package.json
and it simply works, reads tsconfig.json and .babelrc and other settings!
So I have suggestion for including this package, this guys use it too https://github.com/ant-design/ant-design/blob/master/.jest.js#L33