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

Function wrapTestFactoryInZone

packages/zone.js/lib/jest/jest.ts:53–60  ·  view source on GitHub ↗
(originalJestFn: Function)

Source from the content-addressed store, hash-verified

51 }
52
53 function wrapTestFactoryInZone(originalJestFn: Function) {
54 return function (this: unknown, ...tableArgs: any[]) {
55 return function (this: unknown, ...args: any[]) {
56 args[1] = wrapTestInZone(args[1]);
57 return originalJestFn.apply(this, tableArgs).apply(this, args);
58 };
59 };
60 }
61
62 /**
63 * Gets a function wrapping the body of a jest `describe` block to execute in a

Callers 1

patchJestFunction · 0.85

Calls 2

wrapTestInZoneFunction · 0.70
applyMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…