MCPcopy
hub / github.com/angular/angular / fakeAsync

Function fakeAsync

packages/core/testing/src/fake_async.ts:70–72  ·  view source on GitHub ↗
(fn: Function, options?: {flush?: boolean})

Source from the content-addressed store, hash-verified

68 * @publicApi
69 */
70export function fakeAsync(fn: Function, options?: {flush?: boolean}): (...args: any[]) => any {
71 return withFakeAsyncTestModule((v) => v.fakeAsync(fn, options));
72}
73
74/**
75 * IMPORTANT: This API requires Zone.js and cannot be used with the Vitest test runner

Calls 1

withFakeAsyncTestModuleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…