MCPcopy
hub / github.com/ifandelse/machina.js / makeAlwaysValid

Function makeAlwaysValid

packages/machina-test/src/walk.test.ts:60–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 });
59
60const makeAlwaysValid = () =>
61 createFsm({
62 id: "always-valid",
63 initialState: "on",
64 context: {},
65 states: {
66 on: { toggle: "off" as const },
67 off: { toggle: "on" as const },
68 },
69 });
70
71// A FSM that transitions to "exploded" when it receives "trigger".
72// Used to test invariant violations.

Callers 1

walk.test.tsFile · 0.85

Calls 1

createFsmFunction · 0.90

Tested by

no test coverage detected