(error, indent)
| 59 | } |
| 60 | |
| 61 | function formatError(error, indent) { |
| 62 | const err = error.code === 'ERR_TEST_FAILURE' ? error.cause : error; |
| 63 | const message = ArrayPrototypeJoin( |
| 64 | RegExpPrototypeSymbolSplit( |
| 65 | hardenRegExp(/\r?\n/), |
| 66 | inspectWithNoCustomRetry(err, inspectOptions), |
| 67 | ), `\n${indent} `); |
| 68 | return `\n${indent} ${message}\n`; |
| 69 | } |
| 70 | |
| 71 | function formatTestReport(type, data, showErrorDetails = true, prefix = '', indent = '') { |
| 72 | let color = reporterColorMap[type] ?? colors.white; |
no test coverage detected
searching dependent graphs…