Visitar URL original
flushMicrotasks • Angular
The Wayback Machine - https://web.archive.org/web/20260719010137/https://angular.dev/api/core/testing/flushMicrotasks
    • Overview
@angular/core/testing

flushMicrotasks

function
stable

IMPORTANT: This API requires Zone.js and cannot be used with the Vitest test runner

API

function flushMicrotasks(): void;
@returnsvoid

Description

IMPORTANT: This API requires Zone.js and cannot be used with the Vitest test runner

Flush any pending microtasks.

Jump to details