Vitest · Method
vi.runAllTimersAsync
Asynchronously runs all initiated fake timers until the timer queue is empty. It also runs asynchronous timer callbacks.
Last updated
Syntax
function runAllTimersAsync(): Promise<Vitest>In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
vi.useFakeTimersvi.runAllTimersvi.runOnlyPendingTimersAsyncfakeTimers.loopLimit