Function
createMockBlock
(overrides: Partial<BlockState> = {})
Source from the content-addressed store, hash-verified
| 104 | import { WorkflowDiffEngine } from './diff-engine' |
| 105 | |
| 106 | function createMockBlock(overrides: Partial<BlockState> = {}): BlockState { |
| 107 | return { |
| 108 | id: 'block-1', |
| 109 | type: 'agent', |
| 110 | name: 'Test Block', |
| 111 | enabled: true, |
| 112 | position: { x: 0, y: 0 }, |
| 113 | subBlocks: {}, |
| 114 | outputs: {}, |
| 115 | ...overrides, |
| 116 | } as BlockState |
| 117 | } |
| 118 | |
| 119 | function createMockWorkflowState(blocks: Record<string, BlockState>): WorkflowState { |
| 120 | return { |
Tested by
no test coverage detected