UNPKG

@serenity-js/core

Version:

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

37 lines 1.38 kB
import type { JSONObject } from 'tiny-types'; import { RuntimeError } from './RuntimeError'; /** * Thrown to indicate that the [`Actor`](https://serenity-js.org/api/core/class/Actor/) attempted to perform * a [`Task`](https://serenity-js.org/api/core/class/Task/) or [`Interaction`](https://serenity-js.org/api/core/class/Interaction/) that hasn't been implemented yet. * * ## A pending Task * * ```ts * import { Task } from '@serenity-js/core' * * // A pending Task is one that encapsulates no other activities * const Authenticate = () => * Task.where(`#actor authenticates with the service up a test database` ) * ``` * * ## A pending Interaction * * ```ts * import { Interaction } from '@serenity-js/core' * * // A pending Interaction is one that doesn't perform any action * const DoubleClick = () => * Interaction.where(`#actor double-clicks`) * ``` * * @group Errors */ export declare class ImplementationPendingError extends RuntimeError { static fromJSON(serialised: JSONObject): ImplementationPendingError; /** * @param {string} message - Human-readable description of the error * @param {Error} [cause] - The root cause of this [`RuntimeError`](https://serenity-js.org/api/core/class/RuntimeError/), if any */ constructor(message: string, cause?: Error); } //# sourceMappingURL=ImplementationPendingError.d.ts.map