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

Function getDefaultHookTimeout

packages/runner/src/hooks.ts:26–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24import { getChainableContext } from './utils/chain'
25
26function getDefaultHookTimeout() {
27 return getRunner().config.hookTimeout
28}
29
30const CLEANUP_TIMEOUT_KEY = Symbol.for('VITEST_CLEANUP_TIMEOUT')
31const CLEANUP_STACK_TRACE_KEY = Symbol.for('VITEST_CLEANUP_STACK_TRACE')

Callers 9

beforeAllFunction · 0.85
afterAllFunction · 0.85
beforeEachFunction · 0.85
afterEachFunction · 0.85
hooks.tsFile · 0.85
aroundAllFunction · 0.85
aroundEachFunction · 0.85
getAroundHookTimeoutFunction · 0.85

Calls 1

getRunnerFunction · 0.90

Tested by

no test coverage detected