Skip to content
masterclass Buddy

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.

Subscribe
  • jest.useFakeTimers()
  • jest.runAllTimers()
  • jest.runOnlyPendingTimers()
  • jest.clearAllTimers()

Source: Timer Mocks · Jest. Checked 2026-11-03.