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

Function getChainableContext

packages/runner/src/utils/chain.ts:29–31  ·  view source on GitHub ↗
(chainable: any)

Source from the content-addressed store, hash-verified

27export function getChainableContext(chainable: TestAPI): InternalChainableContext
28export function getChainableContext(chainable: any): InternalChainableContext | undefined
29export function getChainableContext(chainable: any): InternalChainableContext | undefined {
30 return chainable?.[kChainableContext]
31}
32
33export function createChainable<T extends string, Args extends any[], R = any>(
34 keys: T[],

Callers 5

createSuiteFunction · 0.90
createTaskCollectorFunction · 0.90
beforeAllFunction · 0.90
afterAllFunction · 0.90
aroundAllFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected