W3cubDocs

/Angular

flushMicrotasks

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

API

function flushMicrotasks(): void;

Description

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

Flush any pending microtasks.

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/core/testing/flushMicrotasks