(overrides: Record<string, any> = {})
| 19 | import { collectBlockFieldIssues, extractBlockParams } from '@/serializer/index' |
| 20 | |
| 21 | function block(overrides: Record<string, any> = {}) { |
| 22 | return { |
| 23 | id: 'b1', |
| 24 | type: 'x', |
| 25 | name: 'My Block', |
| 26 | enabled: true, |
| 27 | position: { x: 0, y: 0 }, |
| 28 | subBlocks: {}, |
| 29 | outputs: {}, |
| 30 | data: {}, |
| 31 | ...overrides, |
| 32 | } as any |
| 33 | } |
| 34 | |
| 35 | function config(subBlocks: any[], overrides: Record<string, any> = {}) { |
| 36 | return { |
no outgoing calls
no test coverage detected