(error: Error | HookError)
| 234 | } |
| 235 | |
| 236 | logHookError(error: Error | HookError) { |
| 237 | if (error instanceof HookError) { |
| 238 | return this.log(`${chalk.red(error.name)} in "${error.origin}"\n${chalk.red(error.stack || error.message)}`) |
| 239 | } |
| 240 | return this.log(`${chalk.red(error.name)}: ${chalk.red(error.stack || error.message)}`) |
| 241 | } |
| 242 | |
| 243 | /** |
| 244 | * event handler that is triggered when runner sends up events |
no test coverage detected