Jest · Method
jest.useRealTimers
jest.useRealTimers() restores Jest's original date, performance, time, and timer APIs. Use it to leave fake-timer mode and return tests to normal time behavior.
Last updated
Syntax
jest.useRealTimers()In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
jest.useFakeTimers()jest.runAllTimers()jest.runOnlyPendingTimers()jest.clearAllTimers()