-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[Bug]: Watch mode locks up at "Determining test suites to run..." after several activations #12757
Comments
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
Throat has a significant unacknowledged bug (ForbesLindesay/throat#61) that may cause it to lock up with repeated invocations. Sindre's p-limit appears to be better supported. I picked p-limit 3.x (the last version before the switch to pure ESM) to match Jest's usage of other packages from Sindre. Fixes jestjs#12757
I'm still regularly encountering this, and throat still has not seen a release, so I do not believe this should be marked stale. See #12960 for a fix. |
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. |
Version
28.0.2 (also observed in 27.5.1)
Steps to reproduce
yarn test
touch packages/a/jest.config.js
touch
16 times, Jest hangs at the "Determining test suites to run..." step.Expected behavior
Jest should not lock up.
Actual behavior
Jest locks up at the "Determining test suites to run..." step. If I restart Jest at that point, everything works fine (until the next time a watch run is triggered 16 times).
Additional context
This appears to be the result of ForbesLindesay/throat#61. If I locally apply ForbesLindesay/throat#62, things work as expected.
I noticed that that bug has been open for a while. Maybe Jest should switch to another package, such as p-limit? (I noticed that Jest already has a transitive dependency on p-limit, although it's an older version.)
Environment
The text was updated successfully, but these errors were encountered: