(id: string)
| 37 | import { ExecutionEngine } from './engine' |
| 38 | |
| 39 | function createMockBlock(id: string): SerializedBlock { |
| 40 | return { |
| 41 | id, |
| 42 | metadata: { id: 'test', name: 'Test Block' }, |
| 43 | position: { x: 0, y: 0 }, |
| 44 | config: { tool: '', params: {} }, |
| 45 | inputs: {}, |
| 46 | outputs: {}, |
| 47 | enabled: true, |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | function createMockNode(id: string, blockType = 'test'): DAGNode { |
| 52 | return { |