@angular/core/testing

flush

function

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.

flush(
maxTurns?: number
): number;
Jump to details