-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Latest version 2.9.26 cause mocha tests that use sinon.useFakeTimers to fail #631
Comments
Do you have some repro code? The last patch had nothing to do with timers |
It's probably 23d1b87, that changed the binding time of |
@dmethvin I guess so, their documentation says nothing about setImmediate :( |
Using modules for window.setTimeout etc. made those functions cached and disabled Sinon mocking, making effects tests fail. Just writing window.setTimeout directly is smaller anyway.
My test suite uses sinon.useFakeTimers in some tests.
After the latest version bump to 2.9.26, all tests using sinon.useFakeTimers fail. Reverting back to 2.9.25 fixes the problem.
The text was updated successfully, but these errors were encountered: