Skip to content
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

Linked issues ? #1

Closed
franky47 opened this issue Nov 19, 2021 · 3 comments
Closed

Linked issues ? #1

franky47 opened this issue Nov 19, 2021 · 3 comments

Comments

@franky47
Copy link

franky47 commented Nov 19, 2021

Hi, I've ended up in the same situation, do you have a backlink to an issue or discussion on this topic ? Thanks!

FYI, I've fixed my tests by using the jest.useFakeTimers('legacy') implementation rather than the 'modern' default.

@rburgst
Copy link
Owner

rburgst commented Nov 20, 2021

jestjs/jest#12056

@rburgst
Copy link
Owner

rburgst commented Nov 20, 2021

For me the solution was overwriting Date.now. Legacy timers didn't work for me.

@rburgst rburgst closed this as completed Nov 20, 2021
@franky47
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants