(stackFrame: puppeteer.ConsoleMessageLocation)
| 201 | } |
| 202 | |
| 203 | function formatStackFrame(stackFrame: puppeteer.ConsoleMessageLocation): string { |
| 204 | if (!stackFrame?.url) { |
| 205 | return '<unknown>'; |
| 206 | } |
| 207 | const filename = stackFrame.url.replace(/^.*\//, ''); |
| 208 | return `${filename}:${stackFrame.lineNumber}:${stackFrame.columnNumber}`; |
| 209 | } |
| 210 | |
| 211 | export function dumpCollectedErrors(): void { |
| 212 | if (!(expectedErrors.length + fatalErrors.length)) { |
no test coverage detected