feat(testing): add disableJestRuntime option to @nx/jest/plugin to speed up target inference
This PR adds a new disableJestRuntime option to @nx/jest/plugin. By setting this to true, the inference plugin will not use jest-config and jest-runtime to retrieve outputs, nor matching spec files when ciTargetName is used. Instead, we'll use our own config loader and glob/matcher to get both values for the inferred targets.
This speeds up computation quite a bit. With a large monorepo (800 projects, 75K files), the computation goes from 2m 41s to 35s, or ~78% time reduction.
NOTE: This has no effect on existing projects and needs to be opted into.
Current Behavior
Expected Behavior
Related Issue(s)
Fixes #
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Updated (UTC) |
|---|---|---|---|
| nx-dev | ✅ Ready (Inspect) | Visit Preview | Oct 28, 2024 6:03pm |
☁️ Nx Cloud Report
CI is running/has finished running commands for commit 5b0d672384f37dfca9d6ba5d88b6cddda22a3b75. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.
📂 See all runs for this CI Pipeline Execution
✅ Successfully ran 4 targets
nx affected --targets=lint,test,build,e2e,e2e-ci --base=1fec6375144c0335176c29c8292deadef898d7ec --head=5b0d672384f37dfca9d6ba5d88b6cddda22a3b75 --parallel=3nx run-many -t check-imports check-commit check-lock-files check-codeowners documentation --parallel=1 --no-dtenx-cloud record -- nx format:check --base=1fec6375144c0335176c29c8292deadef898d7ec --head=5b0d672384f37dfca9d6ba5d88b6cddda22a3b75nx documentation --no-dte
Sent with 💌 from NxCloud.
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.