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

Function wrapDescribeInZone

packages/zone.js/lib/jest/jest.ts:66–70  ·  view source on GitHub ↗

* Gets a function wrapping the body of a jest `describe` block to execute in a * synchronous-only zone.

(describeBody: Function)

Source from the content-addressed store, hash-verified

64 * synchronous-only zone.
65 */
66 function wrapDescribeInZone(describeBody: Function): Function {
67 return function (this: unknown, ...args: any[]) {
68 return syncZone.run(describeBody, this, args);
69 };
70 }
71
72 /**
73 * Gets a function wrapping the body of a jest `it/beforeEach/afterEach` block to

Callers 2

patchJestFunction · 0.70

Calls 1

runMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…