flush
function
stable
IMPORTANT: This API requires Zone.js and cannot be used with the Vitest test runner
Description
IMPORTANT: This API requires Zone.js and cannot be used with the Vitest test runner
Flushes any pending microtasks and simulates the asynchronous passage of time for the timers in
the fakeAsync zone by
draining the macrotask queue until it is empty.
Jump to details