Type Alias Mistake
Mistake:
| {
kind: | "unknown step"
| "step scripted twice"
| "rescue step skips"
| "no contributor"
| "no reporter"
| "step left out";
step: string;
}
| {
attempt: number;
kind: | "gap in the attempts"
| "attempt scripted twice"
| "no such attempt"
| "attempt left out";
step: string;
}
| { kind: "rescue step left out"; rescued: string; step: string }
| { kind: "unknown provider" | "another service"; provider: string }
| {
kind: | "unknown step"
| "step scripted twice"
| "rescue step skips"
| "no contributor"
| "no reporter"
| "step left out";
step: string;
}
| {
attempt: number;
kind: | "gap in the attempts"
| "attempt scripted twice"
| "no such attempt"
| "attempt left out";
step: string;
}
| { kind: "rescue step left out"; rescued: string; step: string }
| { kind: "unknown provider" | "another service"; provider: string }
Type Declaration
- {
kind:
| "unknown step"
| "step scripted twice"
| "rescue step skips"
| "no contributor"
| "no reporter"
| "step left out";
step: string;
}-
Readonlykind:
| "unknown step"
| "step scripted twice"
| "rescue step skips"
| "no contributor"
| "no reporter"
| "step left out"Tells this mistake from the others.
-
Readonlystep: stringThe step, or rescue step, concerned.
-
- {
attempt: number;
kind:
| "gap in the attempts"
| "attempt scripted twice"
| "no such attempt"
| "attempt left out";
step: string;
}-
Readonlyattempt: numberThe attempt concerned: the one described out of order, or the first one left out, since those after it depend on how it ends.
-
Readonlykind:
| "gap in the attempts"
| "attempt scripted twice"
| "no such attempt"
| "attempt left out"Tells this mistake from the others.
-
Readonlystep: stringThe step, or rescue step, concerned.
-
- { kind: "rescue step left out"; rescued: string; step: string }
-
Readonlykind: "rescue step left out"Tells this mistake from the others.
-
Readonlyrescued: stringThe step it rescues, which can fail on attempt 1.
-
Readonlystep: stringThe rescue step left out.
-
- { kind: "unknown provider" | "another service"; provider: string }
-
Readonlykind: "unknown provider" | "another service"Tells this mistake from the others.
-
Readonlyprovider: stringThe service provider the fake is named after.
-
One mistake in a test: its kind, with the step, the attempt or the service provider it concerns, as the test named them.