MCPcopy
hub / github.com/vercel/next.js / log

Method log

test/lib/browsers/playwright.ts:600–614  ·  view source on GitHub ↗
(options?: { includeArgs?: T })

Source from the content-addressed store, hash-verified

598 }
599
600 async log<T extends boolean = false>(options?: { includeArgs?: T }) {
601 return this.startChain(
602 () =>
603 options?.includeArgs
604 ? Promise.all(pageLogs)
605 : Promise.all(pageLogs).then((logs) =>
606 logs.map(({ source, message }) => ({ source, message }))
607 )
608 // TODO: Starting with TypeScript 5.8 we might not need this type cast.
609 ) as Promise<
610 T extends true
611 ? { source: string; message: string; args: unknown[] }[]
612 : { source: string; message: string }[]
613 >
614 }
615
616 async websocketFrames() {
617 return this.startChain(() => websocketFrames)

Callers 15

mainFunction · 0.45
retryKVOperationFunction · 0.45
cleanUpAndExitFunction · 0.45
getTestTimingsFunction · 0.45
mainFunction · 0.45
runTestFunction · 0.45
change-npm-name.jsFile · 0.45
updatePackageJsonFunction · 0.45
updateBindingIndexFunction · 0.45
mainFunction · 0.45
consoleHandlerFunction · 0.45
constructorMethod · 0.45

Calls 4

startChainMethod · 0.95
allMethod · 0.80
thenMethod · 0.80
mapMethod · 0.45

Tested by 15

runTestsFunction · 0.36
runTestsFunction · 0.36
runTestsFunction · 0.36
runTestsFunction · 0.36
runTestsFunction · 0.36
runTestsFunction · 0.36
onStdoutFunction · 0.36
onStderrFunction · 0.36
runTestsFunction · 0.36
devFunction · 0.36
onStdoutFunction · 0.36
runTestsFunction · 0.36