Skip to content

ts-jest vs typescript compiler #3086

Answered by ahnpnl
k-rajat19 asked this question in Q&A
Discussion options

You must be logged in to vote

ts-jest is a Jest transformer which uses TypeScript compiler API to compile ts to js on the fly which Jest can use to run.

tsc is a TypeScript command. If you use tsc, you will need to point Jest to run against the compiled output while ts-jest automatically gives Jest what Jest needs.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@k-rajat19
Comment options

Answer selected by k-rajat19
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