-
-
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
Activating interactive snapshot mode results in "Your test suite must contain at least one test" #6431
Comments
v weird, any chance you can push a repo to repro? |
Unfortunately the project is private and can't be shared. I'll try to reproduce it in a simplified project and push it up in the next several days. |
@dustinmartin this is obviously not a long-term fix, but installing and uninstalling seemed to fix it. |
@wcj3 Unfortunately that did not work. Thanks for the tip though. |
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
When I have snapshots that are failing, I enter
i
to begin interactive snapshot mode. Instead of beginning interactive snapshot mode, Jest reports "1 snapshot reviewed, 1 snapshot updated" when it hasn't actually updated the snapshots.If I re-run Jest I see the same snapshots failing.
To Reproduce
I get this output:
Notice the one snapshot failure. Once I enter
i
:I get the error
Your test suite must contain at least one test.
Here is my Jest config.
Expected behavior
I'd expect interactive snapshot mode to work as detailed in the intro blog post: https://facebook.github.io/jest/blog/2018/05/29/jest-23-blazing-fast-delightful-testing.html#interactive-snapshot-mode
The error
Your test suite must contain at least one test.
seems to be preventing it from working.Run
npx envinfo --preset jest
Paste the results here:
The text was updated successfully, but these errors were encountered: