UNPKG

@serenity-js/core

Version:

The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure

16 lines 652 B
import type { JSONObject } from 'tiny-types'; import { RuntimeError } from './RuntimeError'; /** * Thrown to indicate that an assertion has failed. * * @group Errors */ export declare class AssertionError extends RuntimeError { static fromJSON(serialised: JSONObject): AssertionError; /** * @param message - Human-readable description of the error and the difference between the expected and actual values * @param [cause] - The root cause of this [`RuntimeError`](https://serenity-js.org/api/core/class/RuntimeError/), if any */ constructor(message: string, cause?: Error); } //# sourceMappingURL=AssertionError.d.ts.map