-
-
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
Odd behavior in watch mode between "Enter" and "save" with React #10091
Comments
Looks like it may have to do with the |
Thanks, but changing the test is irrelevant. The fact jest is inconsistent with this is the bug in jest. |
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. |
a |
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
To Reproduce
Steps to reproduce the behavior:
Then open the
example.test.js
and save it a few times until you notice the issue. The test passes, but every now and then, we'll get aconsole.error
from React.Here's the code in the
example.test.js
file:And here's some output:
When it works
Without changing anything, sometimes this happens
Expected behavior
I expect the output to be consistent.
Link to repl or repo (highly encouraged)
https://github.com/kentcdodds/jest-save-enter
This issue is best explained in video form (5 minutes): https://youtu.be/hRxf6QUwkow
envinfo
I honestly have no idea what's going on here, but I definitely observe this happening sometimes in less contrived examples.
Related issues:
The text was updated successfully, but these errors were encountered: