(id: string, blockType = 'test')
| 49 | } |
| 50 | |
| 51 | function createMockNode(id: string, blockType = 'test'): DAGNode { |
| 52 | return { |
| 53 | id, |
| 54 | block: { |
| 55 | ...createMockBlock(id), |
| 56 | metadata: { id: blockType, name: `Block ${id}` }, |
| 57 | }, |
| 58 | outgoingEdges: new Map(), |
| 59 | incomingEdges: new Set(), |
| 60 | metadata: {}, |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | function createMockContext(overrides: Partial<ExecutionContext> = {}): ExecutionContext { |
| 65 | return { |
no test coverage detected