(payload: CLIInterfaceEvent)
| 167 | } |
| 168 | |
| 169 | onTestError(payload: CLIInterfaceEvent) { |
| 170 | const error: TestError = { |
| 171 | type: payload.error?.type || 'Error', |
| 172 | message: payload.error?.message || (typeof payload.error === 'string' ? payload.error : 'Unknown error.'), |
| 173 | stack: payload.error?.stack |
| 174 | } |
| 175 | |
| 176 | return this.log(`[${payload.cid}]`, `${chalk.red(error.type)} in "${payload.fullTitle}"\n${chalk.red(error.stack || error.message)}`) |
| 177 | } |
| 178 | |
| 179 | getFilenames(specs: string[] = []) { |
| 180 | if (specs.length > 0) { |
no test coverage detected