Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vitejs/vite
/ onConsole
Function
onConsole
playground/cli-module/__tests__/cli-module.spec.ts:9–11 ·
view source on GitHub ↗
(msg)
Source
from the content-addressed store, hash-verified
7
// do the same thing manually
8
const
logs = []
9
const
onConsole = (msg) => {
10
logs.push(msg.text())
11
}
12
try {
13
page.on(
'console'
, onConsole)
14
await
page.goto(`http:
//localhost:${port}/`)
Callers
nothing calls this directly
Calls
1
text
Method · 0.80
Tested by
no test coverage detected