MCPcopy
hub / github.com/angular/components / waitForMicrotasks

Function waitForMicrotasks

src/aria/private/testing/test-helpers.ts:13–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 * Useful for testing async behaviors without relying on Zone.js.
12 */
13export function waitForMicrotasks(): Promise<void> {
14 return new Promise(resolve => setTimeout(resolve, 0));
15}

Callers 10

toolbar.spec.tsFile · 0.90
accordion.spec.tsFile · 0.90
grid.spec.tsFile · 0.90
menu.spec.tsFile · 0.90
keydownFunction · 0.90
clickFunction · 0.90
collection.spec.tsFile · 0.90
listbox.spec.tsFile · 0.90
tabs.spec.tsFile · 0.90
tree.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by 2

keydownFunction · 0.72
clickFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…