MCPcopy
hub / github.com/vitest-dev/vitest / runHook

Function runHook

packages/runner/src/run.ts:192–200  ·  view source on GitHub ↗
(hook: Function)

Source from the content-addressed store, hash-verified

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(

Callers 1

callSuiteHookFunction · 0.85

Calls 1

Tested by

no test coverage detected