MCPcopy Index your code
hub / github.com/angular/angular / withFakeAsyncTestModule

Function withFakeAsyncTestModule

packages/core/testing/src/fake_async.ts:17–24  ·  view source on GitHub ↗
(fn: (fakeAsyncTestModule: any) => any)

Source from the content-addressed store, hash-verified

15}
16
17function withFakeAsyncTestModule(fn: (fakeAsyncTestModule: any) => any): any {
18 const fakeAsyncTestModule = getFakeAsyncTestModule();
19 if (!fakeAsyncTestModule) {
20 throw new Error(`zone-testing.js is needed for the fakeAsync() test helper but could not be found.
21 Please make sure that your environment includes zone.js/testing`);
22 }
23 return fn(fakeAsyncTestModule);
24}
25
26/**
27 * IMPORTANT: This API requires Zone.js and cannot be used with the Vitest test runner

Callers 6

resetFakeAsyncZoneFunction · 0.85
fakeAsyncFunction · 0.85
tickFunction · 0.85
flushFunction · 0.85
discardPeriodicTasksFunction · 0.85
flushMicrotasksFunction · 0.85

Calls 2

getFakeAsyncTestModuleFunction · 0.85
fnFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…