Skip to content

Commit

Permalink
docs: update Jest documentation to reflect new default SWC-based tran…
Browse files Browse the repository at this point in the history
…sform
  • Loading branch information
jrolfs committed Feb 27, 2023
1 parent 6801d01 commit f95265d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,13 @@ module.exports = require('@hover/javascript/prettier')

Or, for Jest in `jest.config.js`:

> ℹ️ If **ts-jest** is installed, it will automatically be used as the `preset`
> ⚠️ Starting with
> [**7.0**](https://github.com/hoverinc/hover-javascript/releases/tag/v7.0.0),
> the default Jest `transform` is
> [**@swc-node/jest**](https://github.com/swc-project/swc-node/#swc-nodejest).
> If you want to continue using
> [**ts-jest**](https://kulshekhar.github.io/ts-jest/), simpy install `ts-jest`
> in your project and it will automatically be used as the `transform` instead.
```js
const config = require('@hover/javascript/jest')
Expand Down

0 comments on commit f95265d

Please sign in to comment.