-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jest crashes if __snapshot__ folder gets removed #9331
Comments
Seems to work in properly in my Mac
|
Issue seems to be only in Windows. Ran it in a Windows 10 VM and got this
|
@M4rk9696 Yep, that's exactly the error I get. Should've posted it below my question... |
This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days. |
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one. |
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
If you're using snapshots and remove the folder while jest is idle (Using it with the
--watchwatchAll
flag) the process crashes. Not sure if this is related to jest though.To Reproduce
Use jest with the
--watchAll
flag and remove the__snapshots__
folder after a test is done.Expected behavior
It could just tell me that the
__snapshots__
is not longer available and recreate it.Link to repo
Here you go: jest-error-snapshots-folder-removed.
It fails here. I've used fs-extra but you can remove it manually too via your file-explorer.
envinfo
The text was updated successfully, but these errors were encountered: