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

Method off

packages/vitest/src/node/pools/poolRunner.ts:343–345  ·  view source on GitHub ↗
(event: 'message' | 'error', callback: (arg: any) => void)

Source from the content-addressed store, hash-verified

341 off(event: 'message', callback: (message: WorkerResponse) => void): void
342 off(event: 'error', callback: (error: Error) => void): void
343 off(event: 'message' | 'error', callback: (arg: any) => void): void {
344 this._eventEmitter.off(event, callback)
345 }
346
347 private emitWorkerError = (maybeError: unknown): void => {
348 const error = maybeError instanceof Error ? maybeError : new Error(String(maybeError))

Callers 11

onStopMethod · 0.95
onStartMethod · 0.95
rpcFunction · 0.45
spawnMethod · 0.45
workerInitFunction · 0.45
registerWatcherMethod · 0.45
addCleanupListenersMethod · 0.45
onFinishedMethod · 0.45
onTaskErrorMethod · 0.45
stopMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected