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

Function abortContextSignal

packages/runner/src/context.ts:147–150  ·  view source on GitHub ↗
(context: TestContext, error: Error)

Source from the content-addressed store, hash-verified

145}
146
147export function abortContextSignal(context: TestContext, error: Error): void {
148 const abortController = abortControllers.get(context)
149 abortController?.abort(error)
150}
151
152export function createTestContext(
153 test: Test,

Callers 4

callAroundEachHooksFunction · 0.90
startTestsFunction · 0.90
abortIfTimeoutFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected