Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jest hangs when a worker runs out of memory #8068

Closed
rubennorte opened this issue Mar 6, 2019 · 1 comment · Fixed by #8079
Closed

Jest hangs when a worker runs out of memory #8068

rubennorte opened this issue Mar 6, 2019 · 1 comment · Fixed by #8079
Labels

Comments

@rubennorte
Copy link
Contributor

🐛 Bug Report

We have a bunch of tests that load a big amount of data. When that data exceeds the maximum heap size configured in Node, the worker fails and Jest hangs.

I'm pretty sure we'd have the same behaviour with any other fatal error in the worker.

(I'll look into this after. I just wanted to have an issue I could link 😅).

To Reproduce

Steps to reproduce the behavior:

Make a worker fail by creating a test that reserves memory indefinitely and see how Jest hangs.

Expected behavior

Jest should make that test fail and continue with the rest, eventually finishing.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant