MCPcopy
hub / github.com/vitejs/vite / handleMsg

Function handleMsg

playground/test-utils.ts:348–359  ·  view source on GitHub ↗
(msg: ConsoleMessage)

Source from the content-addressed store, hash-verified

346 }
347
348 const handleMsg = (msg: ConsoleMessage) => {
349 try {
350 const text = msg.text()
351 logs.push(text)
352 const done = processMsg(text)
353 if (done) {
354 resolve()
355 }
356 } catch (err) {
357 reject(err)
358 }
359 }
360
361 timeoutId = setTimeout(() => {
362 const nextTarget = Array.isArray(target)

Callers

nothing calls this directly

Calls 2

textMethod · 0.80
resolveFunction · 0.50

Tested by

no test coverage detected