| 83 | import { useWorkflowRegistry } from '@/stores/workflows/registry/store' |
| 84 | |
| 85 | function makeEnvelope(overrides: Record<string, unknown> = {}) { |
| 86 | return { |
| 87 | id: 'wf-1', |
| 88 | isDeployed: true, |
| 89 | deployedAt: new Date('2026-01-01T00:00:00.000Z'), |
| 90 | isPublicApi: false, |
| 91 | state: { |
| 92 | blocks: { b1: { id: 'b1' } }, |
| 93 | edges: [], |
| 94 | loops: {}, |
| 95 | parallels: {}, |
| 96 | }, |
| 97 | variables: { v1: { id: 'v1', workflowId: 'wf-1', name: 'x' } }, |
| 98 | ...overrides, |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | describe('registry store loadWorkflowState (collapsed cache)', () => { |
| 103 | beforeEach(() => { |