What run rejects with when it refuses an instance, before any journey
starts and before any event: refused says why. When failing custom code
caused it, the error is also its standard cause.
awaitassert.rejects(executor.run(instance), Refusal); awaitassert.rejects(executor.run(instance), { refused: { kind:"instance ran" }, message: "run refused an instance that already ran: make an instance for each journey", }); })();
What
runrejects with when it refuses an instance, before any journey starts and before any event:refusedsays why. When failing custom code caused it, the error is also its standardcause.