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

Function reject

packages/runner/src/context.ts:87–92  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

85 }
86
87 function reject(error: unknown) {
88 runner._currentTaskStartTime = undefined
89 runner._currentTaskTimeout = undefined
90 clearTimeout(timer)
91 reject_(error)
92 }
93
94 // sync test/hook will be caught by try/catch
95 try {

Callers 13

createTimeoutPromiseFunction · 0.70
withTimeoutFunction · 0.70
withCancelFunction · 0.70
waitForOrchestratorFunction · 0.50
registerWSFunction · 0.50
prepareIframeMethod · 0.50
onErrorMethod · 0.50
viewportFunction · 0.50
uploadFunction · 0.50
registerWSFunction · 0.50
rpcFunction · 0.50
getFactoryExportsFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected