(hook: Function)
| 190 | } |
| 191 | |
| 192 | async function runHook(hook: Function) { |
| 193 | return limitMaxConcurrency(async () => { |
| 194 | return getBeforeHookCleanupCallback( |
| 195 | hook, |
| 196 | await hook(...args), |
| 197 | name === 'beforeEach' ? args[0] as TestContext : undefined, |
| 198 | ) |
| 199 | }) |
| 200 | } |
| 201 | |
| 202 | if (sequence === 'parallel') { |
| 203 | callbacks.push( |
no test coverage detected