-
-
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
requestAnimationFrame
callbacks are never called with legacy fake timers when advancing time
#11565
Comments
Legacy timers do not support PR welcome! |
Thanks for the quick response.
I'm not sure why
Let me check if I can throw something together quickly. Not sure if this will be useful though since that would still require updating jest itself. |
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
Callbacks scheduled with
requestAnimationFrame
are not called when usingjest.useFakeTimers('legacy')
andjest.advanceTimersByTime(17)
To Reproduce
Expected behavior
Tests pass with legacy and modern fake timers
Link to repl or repo (highly encouraged)
https://github.com/eps1lon/jest-fake-timers-request-animation-frame
envinfo
The text was updated successfully, but these errors were encountered: