Skip to content

Type checking in tests with CRA #2517

Answered by ahnpnl
aberonni asked this question in Q&A
Discussion options

You must be logged in to vote

IIRC a CRA without ejecting doesn’t accept a custom config for transform Jest option. By default, CRA project always processes TypeScript files with Babel.

I only know that ejecting CRA will allow to configure Jest to use ts-jest instead of Babel. I’m not sure without ejecting you can achieve that.

It’s better to ask this question in Jest Discord community or React community.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ahnpnl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants