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

jasmine-globals: support for jest.setSystemTime() #570

Closed
puglyfe opened this issue May 6, 2024 · 0 comments · Fixed by #571
Closed

jasmine-globals: support for jest.setSystemTime() #570

puglyfe opened this issue May 6, 2024 · 0 comments · Fixed by #571

Comments

@puglyfe
Copy link
Contributor

puglyfe commented May 6, 2024

When running the jasmine-globals transform against a codebase that uses jasmine.clock().mockDate(), there is a warning that this functionality is not supported in Jest (source).

This was likely true with Jest's legacy timers implementation, however, there is now jest.setSystemTime(), as well as the FakeTimersConfig.now option that can be used for this purpose.

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

Successfully merging a pull request may close this issue.

1 participant