-
-
Notifications
You must be signed in to change notification settings - Fork 745
fix: address timeout issue with mocked timers #2880
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Epic PR! Thank you!
@leon19 I'm wondering if it breaks current workarounds as described in the fixed issue. |
I've added tests for covering the "advance timers" workaround when the timers are mocked, but there is no delay involved |
@leon19 is it ready for merge? |
Yes, it's ready 👌 |
🎉 This PR is included in version 14.0.7 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This reverts commit fb112f3.
Make it work with
sinon
andjest
fake timers. Fixes #2200Importing
timers
instead of using the global ones would still not work forjest