swc-project / website

Documentation for the SWC project.

Home Page:https://swc.rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect @swc/jest description

pcjmfranken opened this issue · comments

From

To make your Jest tests run faster, you can swap out the default JavaScript-based runner (`ts-jest`) for a [drop-in Rust replacement](https://github.com/swc-project/jest) using SWC.
:

To make your Jest tests run faster, you can swap out the default JavaScript-based runner (ts-jest) for a drop-in Rust replacement using SWC.


The "default" Jest runner for TypeScript is actually1 Babel with @babel/preset-typescript.

Neither @swc/jest nor the Babel TypeScript setup support type-checking, whilst ts-jest does.

This makes @swc/jest a drop-in replacement for the actual default runner, but not for the one that is mentioned :)

Footnotes

  1. https://jestjs.io/docs/getting-started#using-typescript

Fixed here - thank you!

#139