Interface StepMockScript
interface StepMockScript {
asynchronous?: boolean;
attempts: readonly [Ending, Ending];
buildFailure?: string;
}
asynchronous?: boolean;
attempts: readonly [Ending, Ending];
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 attempt ends, the first attempt's first; the last ending is played again by every attempt after it.
Optional Readonlybuild Failure
buildFailure?: string
The message of the error its constructor throws, when the step cannot be built.
What a step mock does: how each of its attempts ends, whether it ends asynchronously, and whether it cannot be built.