Skip to content
masterclass Buddy

Jest · Method

jest.runOnlyPendingTimers

Runs only the timers that are pending when the call starts. Timers created during those callbacks are not run until a later call.

Last updated

Syntax

jest.runOnlyPendingTimers()

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • jest.useFakeTimers()
  • jest.useRealTimers()
  • jest.runAllTimers()
  • jest.advanceTimersByTime()
  • jest.runOnlyPendingTimersAsync()

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