-
-
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
MacOS: Jest does not exit any more due to fsevents update #10777
Comments
I believe I'm getting the same issue. I tried upgrading all kinds of dependencies/tools to see if any of that would fix it (along with trying other suggestions found around the net to fix hanging tests, such as uninstalling/reinstalling
Thanks for the workaround @kryops 👍 |
Same here. Broken on macOS |
FWIW, if you can downgrade to node 10, that also seems to provide a temporary workaround. |
Reporting to fsevents seems like a good idea. I haven't investigated on our side, but I don't think we do anything weird. EDIT: In case people miss the link below: fsevents/fsevents#345 |
After hitting these same issues all day... I upgraded jest to 26.6.3. My tests are now exiting without the need for --forceExit, or any other workaround. |
For those who use npm and cannot apply the resolutions workaround, you can directly modify your package-lock.json file to install the latest working fsevents version (2.1.3), though you'll have to be careful with the future updates. |
26.6.3 didn't fix the issue for me. But the Yarn |
Note that fsevents is pinned to v2.1.3 for jest-haste-map, due to - jestjs/jest#10777 - fsevents/fsevents#345 Once those issues are resolved, we should be able to remove that.
yarn's
I think it's time to drop the |
We won't be dropping If you have a lockfile (which you probably do if using yarn resolutions) you can ensure fsevents is on 2.1.3 in there and avoid the bug. Here's a fsevents@^2.1.2, fsevents@~2.1.2:
version "2.1.3"
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.1.3.tgz#fb738703ae8d2f9fe900c33836ddebee8b97f23e"
integrity sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ== |
For me, this worked on macOS and Linux both. putting fsevents in resolution would throw error in Linux and windows.
Just for reference my
|
Note that fsevents is pinned to v2.1.3 for jest-haste-map, due to - jestjs/jest#10777 - fsevents/fsevents#345 Once those issues are resolved, we should be able to remove that.
Note that fsevents is pinned to v2.1.3 for jest-haste-map, due to - jestjs/jest#10777 - fsevents/fsevents#345 Once those issues are resolved, we should be able to remove that.
In working around jestjs/jest#10777, I pinned fsevents. However, that cannot be installed on Linux, and was blowing up on CI. Instead, we can pin jest-haste-map to a previous version until that issue is resolved.
Note that fsevents is pinned to v2.1.3 for jest-haste-map, due to - jestjs/jest#10777 - fsevents/fsevents#345 Once those issues are resolved, we should be able to remove that.
In working around jestjs/jest#10777, I pinned fsevents. However, that cannot be installed on Linux, and was blowing up on CI. Instead, we can pin jest-haste-map to a previous version until that issue is resolved.
Note that fsevents is pinned to v2.1.3 for jest-haste-map, due to - jestjs/jest#10777 - fsevents/fsevents#345 Once those issues are resolved, we should be able to remove that.
In working around jestjs/jest#10777, I pinned fsevents. However, that cannot be installed on Linux, and was blowing up on CI. Instead, we can pin jest-haste-map to a previous version until that issue is resolved.
Note that fsevents is pinned to v2.1.3 for jest-haste-map, due to - jestjs/jest#10777 - fsevents/fsevents#345 Once those issues are resolved, we should be able to remove that.
In working around jestjs/jest#10777, I pinned fsevents. However, that cannot be installed on Linux, and was blowing up on CI. Instead, we can pin jest-haste-map to a previous version until that issue is resolved.
Fixed upstream in 2.2.1 👍 |
Still need to force exit tests. Maybe related: jestjs/jest#10777
Is it normally fixed in latest Jest version? Because I'm running 26.6.3 and the bug is still happening for me. Or is the fixed version not released yet? |
It is included. Check your |
It fixed the problem for me, thanks! 😄 👍 |
Even with |
Still an ongoing issue for me. Can confirm I see this on node v12 and v14 with
|
@SimenB Still an issue, can this be reopened please? |
The reported issue is fixed, please open up a new bug report with a reproduction if you're getting a similar error. |
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. |
🐛 Bug Report
Jest does not exit any longer after the tests are done on MacOS.
I tracked it down to the Update of
[email protected]
. Not sure if it might be better to open an issue there, or if you can fix it on your end. (Edit: I created fsevents/fsevents#345)As a workaround, I added the following to my
package.json
(throughyarn
):(Edit: Note that this workaround will fail installing on Windows and Linux. If you have a lock file (
yarn.lock
orpackage-lock.json
), you should be able to set the version offsevents
to2.1.3
there, see #10777 (comment) below)To Reproduce
Steps to reproduce the behavior:
Just run
jest
- I could reproduce it in a minimal repository with just Jest and a single test file.package.json
foo.test.js
Expected behavior
Jest should exit after the tests are done.
envinfo
I also reproduced this on Node 14.1.0 and 15.0.1
The text was updated successfully, but these errors were encountered: