/** * Fixture: a throwing action with expectRuntimeErrors: 1. * The runner must treat the error as required-and-satisfied — no failure. */ import { action, assert, pattern, TESTS, Writable } from "commonfabric"; export default pattern(() => { const untouched = new Writable(true); const stillUntouched = assert(() => untouched.get()); const throwingAction = action(() => { throw new Error("verb rejected: intentional fixture throw"); }); return { [TESTS]: [ { action: throwingAction }, { assertion: stillUntouched }, ], expectRuntimeErrors: 1, }; });