(id: string, metadataId: string)
| 9 | import type { SerializedBlock, SerializedWorkflow } from '@/serializer/types' |
| 10 | |
| 11 | function createBlock(id: string, metadataId: string): SerializedBlock { |
| 12 | return { |
| 13 | id, |
| 14 | position: { x: 0, y: 0 }, |
| 15 | config: { |
| 16 | tool: 'noop', |
| 17 | params: {}, |
| 18 | }, |
| 19 | inputs: {}, |
| 20 | outputs: {}, |
| 21 | metadata: { |
| 22 | id: metadataId, |
| 23 | name: id, |
| 24 | }, |
| 25 | enabled: true, |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | describe('DAGBuilder disabled subflow validation', () => { |
| 30 | it('skips validation for disabled loops with no blocks inside', () => { |