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

Function onCancel

packages/vitest/src/node/pools/rpc.ts:149–151  ·  view source on GitHub ↗
(reason)

Source from the content-addressed store, hash-verified

147 vitest.state.catchLeaks(leaks)
148 },
149 onCancel(reason) {
150 vitest.cancelCurrentRun(reason)
151 },
152 getCountOfFailedTests() {
153 return vitest.state.getCountOfFailedTests()
154 },

Callers

nothing calls this directly

Calls 1

cancelCurrentRunMethod · 0.80

Tested by

no test coverage detected