Skip to content

@continuum-js/test


@continuum-js/test / advanceTimers

Function: advanceTimers()

advanceTimers(ms): Promise<void>

Defined in: index.ts:75

Advance vitest fake timers by ms and flush microtasks, so time-based combinators (debounce, throttle, interval, delay) fire and their downstream settles. Requires vi.useFakeTimers() in the test.

Parameters

ms

number

Returns

Promise<void>