(id: string, updates: Array<{ key: string; value: string }>)
| 6 | |
| 7 | /** Create a FlowNode with `updateFlowState` inputs for state-related tests. */ |
| 8 | const makeStateNode = (id: string, updates: Array<{ key: string; value: string }>): FlowNode => |
| 9 | ({ |
| 10 | id, |
| 11 | type: 'customNode', |
| 12 | position: { x: 0, y: 0 }, |
| 13 | data: { |
| 14 | id, |
| 15 | name: id, |
| 16 | label: id, |
| 17 | inputs: { updateFlowState: updates } |
| 18 | } |
| 19 | } as unknown as FlowNode) |
| 20 | |
| 21 | // ── extractVariables ──────────────────────────────────────────────────────── |
| 22 |