(args: IArguments)
| 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)); |
no test coverage detected
searching dependent graphs…