@serenity-js/core
Version:
The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure
17 lines (15 loc) • 351 B
text/typescript
import type { FileSystemLocation } from '../io';
import type { ExpectationDetails } from '../screenplay';
/**
* @group Errors
*/
export interface ErrorOptions {
message: string;
location?: FileSystemLocation;
expectation?: ExpectationDetails;
diff?: {
expected: unknown;
actual: unknown;
};
cause?: Error;
}