TLDR Tech / Dev
Fix Flaky Jest Tests in CI with maxWorkers (and why it works) (11 minute read)
Flaky Jest tests in CI are usually a memory problem, not a code problem, so setting --maxWorkers='50%' caps workers at half the available CPU cores and largely eliminates the issue.
Read the full story