BettererReporter.runError()
API > @betterer/betterer > BettererReporter > runError
The runError()
hook is called when a BettererRun
throws an error.
Signature
runError?(run: BettererRun, error: BettererError): Promise<void> | void;
Parameters
Parameter | Type | Description |
---|---|---|
run | BettererRun | The test run. |
error | BettererError | The error thrown while running the test. |
Returns
Promise<void> | void