chore(test): raise the heap ceiling on non-coverage test scripts - #4144
Conversation
--experimental-vm-modules leaks ESM module registries between suites (upstream jest issue, still present on jest 30), hitting Node's ~4 GB default old-space ceiling around ~280 suites (OOM, not a test failure). Adds --max-old-space-size=8192 to the NODE_OPTIONS value on `test` and `test:unit` only; `:coverage` variants already carry their own flag and are untouched. Closes #3948 Claude-Session: https://claude.ai/code/session_015td7sshifbRrYrHbKgheiR
|
Warning Review limit reachedNext included review available in 19 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository: pierreb-devkit/Node/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4144 +/- ##
=======================================
Coverage 94.48% 94.48%
=======================================
Files 170 170
Lines 6036 6036
Branches 1946 1947 +1
=======================================
Hits 5703 5703
Misses 271 271
Partials 62 62
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Jest with ESM modules leaks memory per suite, so large suites crash with a heap error around Node's default 4 GB limit. Every non-coverage test script now sets
--max-old-space-size=8192(a ceiling, not a reservation). Coverage scripts keep their own flags. MIGRATIONS.md tells downstream projects to apply the same change to their own package.json.Closes #3948 · epic #4019
https://claude.ai/code/session_015td7sshifbRrYrHbKgheiR