TypeScript tests are not working
Closed this issue · 1 comments
klzns commented
It throws an error of missing @types/jest
.
I tried to solve this issue:
- Placing
tsconfig.json
in the userreact
folder - Placing
tsconfig.json
in the test-tools folder - Using tsConfig option of
ts-jest
https://kulshekhar.github.io/ts-jest/user/config/tsConfig
None worked.
I'm considering replacing ts-jest
with the babelTransform, just like create-react-app does.
victorhmp commented
Opened a PR to address this :)
I took a look at create-react-app to see how they solve this and turns out I did replace ts-jest
with the babelTransform. Is there any drawback in this solution?