Vitest · Method
vi.runOnlyPendingTimers
Runs all timers that were already pending after fake timers were enabled. It does not run timers created during this call.
Last updated
Syntax
vi.runOnlyPendingTimers(): VitestIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
vi.useFakeTimersvi.runOnlyPendingTimersAsyncvi.runAllTimersvi.useRealTimers