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.
SubscribeRelated
jest.useFakeTimers()jest.useRealTimers()jest.runAllTimers()jest.advanceTimersByTime()jest.runOnlyPendingTimersAsync()