MCPcopy Index your code
hub / github.com/simstudioai/sim / createBlock

Function createBlock

apps/sim/executor/utils/parallel-expansion.test.ts:18–28  ·  view source on GitHub ↗
(id: string, metadataId: string)

Source from the content-addressed store, hash-verified

16import type { SerializedBlock, SerializedWorkflow } from '@/serializer/types'
17
18function createBlock(id: string, metadataId: string): SerializedBlock {
19 return {
20 id,
21 position: { x: 0, y: 0 },
22 config: { tool: 'noop', params: {} },
23 inputs: {},
24 outputs: {},
25 metadata: { id: metadataId, name: id },
26 enabled: true,
27 }
28}
29
30describe('Nested parallel expansion + edge resolution', () => {
31 it('waits for every branch terminal before queuing the parallel end sentinel', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected