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