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

Function wrapSuiteInZone

packages/zone.js/lib/mocha/mocha.ts:101–115  ·  view source on GitHub ↗
(args: IArguments)

Source from the content-addressed store, hash-verified

99 }
100
101 function wrapSuiteInZone(args: IArguments): any[] {
102 const asyncTest = function (fn: Function) {
103 return function (this: unknown, done: Function) {
104 return suiteZone.run(fn, this, [done]);
105 };
106 };
107
108 const syncTest: any = function (fn: Function) {
109 return function (this: unknown) {
110 return suiteZone.run(fn, this);
111 };
112 };
113
114 return modifyArguments(args, syncTest, asyncTest);
115 }
116
117 global.describe = global.suite = function () {
118 return mochaOriginal.describe.apply(this, wrapDescribeInZone(arguments));

Callers 1

patchMochaFunction · 0.85

Calls 1

modifyArgumentsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…