A mistake in a test, found before its journey starts: thrown where the
mistake is written, or when a scripted run starts, never a refusal, and
with no event emitted. Its message names each problem, and problems
holds them.
awaitassert.rejects( scripted(instance).step("charge").willFail("declined").run(), (mistake: unknown) => mistakeinstanceofTestMistake && mistake.message === "the test is mistaken: attempt 2 of charge is left out" && mistake.problems[0]?.kind === MistakeKind.AttemptLeftOut, ); })();
A mistake in a test, found before its journey starts: thrown where the mistake is written, or when a scripted run starts, never a refusal, and with no event emitted. Its message names each problem, and
problemsholds them.