-
-
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
throw in setTimeout/setInterval is ignored #2685
Comments
I think this is already addressed somewhere here #1873 (comment) and here #2059. There are workarounds for that, but we should provide much better DX on this. |
@thymikee only workaround I found was #2059 (comment) and that's quite ugly. IMHO Jest should fall in line with how every other spec runner handles this. |
@capaj please send us a PR to address this. |
trying it on the latest master it seems to be working properly and throwing the error both with fake and regular timers |
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. |
running in jest, I get:
Now compare that to how mocha handles it:
This is bug right? Please tell me this is a bug, not a feature.
The text was updated successfully, but these errors were encountered: