Skip to content
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.

Use 'typescript-babel-jest' for jest tsx transform #97

Closed
JiLiZART opened this issue Jul 3, 2017 · 3 comments
Closed

Use 'typescript-babel-jest' for jest tsx transform #97

JiLiZART opened this issue Jul 3, 2017 · 3 comments

Comments

@JiLiZART
Copy link

JiLiZART commented Jul 3, 2017

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

@wmonk
Copy link
Owner

wmonk commented Aug 7, 2017

Hi, is this fixed from us moving to ts-jest?

@JiLiZART
Copy link
Author

JiLiZART commented Aug 7, 2017

Its only suggestion of a good package, that can chain babel and ts. It's on your choice what package to use. Anyway i solved this for myself

@wmonk
Copy link
Owner

wmonk commented Aug 8, 2017

Please close this issue if it is solved 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants