From 0a986ff230d1ff800a670e3c3ff5d4fb49158895 Mon Sep 17 00:00:00 2001 From: Ben Limmer Date: Wed, 16 Aug 2023 10:24:45 -0600 Subject: [PATCH] docs: remove github-actions-cpu-cores rec As of Jest 29.4.0, you no longer need to use the `github-actions-cpu-cores` action to properly set `--max-workers`. This logic was integrated into Jest via #13738 --- CHANGELOG.md | 2 ++ docs/Troubleshooting.md | 10 ---------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e15bad622f72..b614f60a7dac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ ### Chore & Maintenance +- `[docs]` Remove `github-actions-cpu-cores` recommendation ([#14421](https://github.com/jestjs/jest/pull/14421)) + ### Performance ## 29.6.2 diff --git a/docs/Troubleshooting.md b/docs/Troubleshooting.md index ffa30a558854..9d5332ea8c24 100644 --- a/docs/Troubleshooting.md +++ b/docs/Troubleshooting.md @@ -185,16 +185,6 @@ jest --maxWorkers=4 npm test -- --maxWorkers=4 ``` -If you use GitHub Actions, you can use [`github-actions-cpu-cores`](https://github.com/SimenB/github-actions-cpu-cores) to detect number of CPUs, and pass that to Jest. - -```yaml -- name: Get number of CPU cores - id: cpu-cores - uses: SimenB/github-actions-cpu-cores@v1 -- name: run tests - run: yarn jest --max-workers ${{ steps.cpu-cores.outputs.count }} -``` - Another thing you can do is use the [`shard`](CLI.md#--shard) flag to parallelize the test run across multiple machines. ## `coveragePathIgnorePatterns` seems to not have any effect.