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
We upgraded to 14.4.3 and all tests work locally. When run on CircleCI, we have one test that throws a Exceeded timeout of 5000 ms even though we not using fake timers in this test file.
Adding delay: null fixed the issue. Also advanceTimers: jest.advanceTimersByTime fixes the issue but produces the warning -
A function to advance timers was called but the timers API is not mocked with fake timers. Call `jest.useFakeTimers()` in this test or enable fake timers globally by setting `"timers": "fake"` in the configuration file
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Good afternoon!
We upgraded to
14.4.3
and all tests work locally. When run on CircleCI, we have one test that throws aExceeded timeout of 5000 ms
even though we not using fake timers in this test file.Adding
delay: null
fixed the issue. AlsoadvanceTimers: jest.advanceTimersByTime
fixes the issue but produces the warning -How would I debug into this issue?
Any help would be greatly appreciated. 🙏
Beta Was this translation helpful? Give feedback.
All reactions