Interface RescueStepMockScript
interface RescueStepMockScript {
asynchronous?: boolean;
attempts: readonly [RescueEnding, RescueEnding];
buildFailure?: string;
}
asynchronous?: boolean;
attempts: readonly [RescueEnding, RescueEnding];
buildFailure?: string;
}
Properties
Optional Readonlyasynchronous
asynchronous?: boolean
true for a run that gives its outcome through a promise, settled
after the current turn, rather than at once.
Readonlyattempts
How each rescue step built from the class ends, the first one's first; the last ending is played again by every one after it. A rescue step has one attempt per rescue, so a workflow whose step is rescued once plays only the first.
Optional Readonlybuild Failure
buildFailure?: string
The message of the error its constructor throws, when the rescue step cannot be built.
What a rescue step mock does: how it ends, whether it ends asynchronously, and whether it cannot be built.