You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
When running the
jasmine-globals
transform against a codebase that usesjasmine.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.
The text was updated successfully, but these errors were encountered: