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

Method onUserConsoleLog

test/cli/test/signal.test.ts:86–90  ·  view source on GitHub ↗
(log: UserConsoleLog)

Source from the content-addressed store, hash-verified

84 }
85
86 onUserConsoleLog(log: UserConsoleLog) {
87 if (log.content.includes('ready')) {
88 this.vitest.cancelCurrentRun('keyboard-input')
89 }
90 }
91}
92
93test('cancelling test run aborts the signal', async () => {

Callers 1

onUserConsoleLogFunction · 0.45

Calls 1

cancelCurrentRunMethod · 0.80

Tested by

no test coverage detected