Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update test config to leverage swc (#28400)
This updates our `jest` configuration to no longer use `babel-jest` and instead uses `@swc/jest` which is much faster. This also updates to the latest version of `jest`, fixes our `tsconfig.json` used for tests (previously types in `node_modules` weren't resolved correctly), and ensures `next/dist` isn't un-necessarily transpiled in `jest`. Timings for `yarn testheadless test/unit/` on CI - before: 3m 30s - 4m ([example run](https://github.com/vercel/next.js/runs/3394701995)) - after: under 1m ([example run](https://github.com/vercel/next.js/pull/28400/checks?check_run_id=3395161621)) Timings for `yarn testheadless test/unit/` locally on m1 mac - before: 90.16 seconds - after: 29.92 seconds
- Loading branch information
Showing
8 changed files
with
64,910 additions
and
64,937 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.