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

Method postMessage

packages/vitest/src/node/pools/poolRunner.ts:126–132  ·  view source on GitHub ↗
(message: WorkerRequest)

Source from the content-addressed store, hash-verified

124 }
125
126 postMessage(message: WorkerRequest): void {
127 // Only send messages when runner is active (not fully stopped)
128 // Allow sending during STOPPING state for the 'stop' message itself
129 if (this._state !== RunnerState.STOPPED) {
130 return this.worker.send(message)
131 }
132 }
133
134 startTracesSpan(name: string): Span {
135 const traces = this._traces

Callers 7

constructorMethod · 0.95
requestMethod · 0.95
startMethod · 0.95
stopMethod · 0.95
ensureModuleGraphEntryFunction · 0.45
workerInitFunction · 0.45
sendMethod · 0.45

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected