MCPcopy
hub / github.com/codeceptjs/CodeceptJS / normalizeBrowserLogs

Function normalizeBrowserLogs

lib/utils/trace.js:113–121  ·  view source on GitHub ↗
(logs)

Source from the content-addressed store, hash-verified

111// ---------------------------------------------------------------------------
112
113function normalizeBrowserLogs(logs) {
114 return (logs || []).map(l => {
115 if (typeof l === 'string') return l
116 if (l && typeof l.type === 'function' && typeof l.text === 'function') {
117 return { type: l.type(), text: l.text() }
118 }
119 return l
120 })
121}
122
123async function captureStorageState(helper) {
124 if (typeof helper.grabStorageState === 'function') {

Callers 1

captureSnapshotFunction · 0.85

Calls 1

typeMethod · 0.45

Tested by

no test coverage detected