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

Function createForkedZone

packages/zone.js/test/vitest/with-proxy-zone.spec.js:13–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 const proxyZone = Zone.root.fork(spec);
12
13 function createForkedZone() {
14 const AsyncTestZoneSpec = Zone['AsyncTestZoneSpec'];
15 return Zone.current.fork(
16 new AsyncTestZoneSpec(
17 () => {},
18 () => {},
19 'asyncTest',
20 ),
21 );
22 }
23
24 test('cannot run fakeAsync outside proxy zone', () => {
25 expect(fakeAsync(() => {})).toThrow();

Callers 1

Calls 1

forkMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…