(/** @type {unknown[]} */ ...args)
| 127 | }); |
| 128 | }, |
| 129 | beforeEach(/** @type {unknown[]} */ ...args) { |
| 130 | if (runTests >= numberOfTests) { |
| 131 | throw new Error("beforeEach called too late"); |
| 132 | } |
| 133 | args[0] = createDisposableFn(/** @type {AnyFn | undefined} */ (args[0])); |
| 134 | inSuite(() => { |
| 135 | // @ts-expect-error expected |
| 136 | beforeEach(...args); |
| 137 | fixAsyncError( |
| 138 | currentDescribeBlock.hooks[currentDescribeBlock.hooks.length - 1] |
| 139 | ); |
| 140 | }); |
| 141 | }, |
| 142 | afterEach(/** @type {unknown[]} */ ...args) { |
| 143 | if (runTests >= numberOfTests) { |
| 144 | throw new Error("afterEach called too late"); |
no test coverage detected