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

Function createBlock

apps/sim/executor/dag/builder.test.ts:11–27  ·  view source on GitHub ↗
(id: string, metadataId: string)

Source from the content-addressed store, hash-verified

9import type { SerializedBlock, SerializedWorkflow } from '@/serializer/types'
10
11function 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
29describe('DAGBuilder disabled subflow validation', () => {
30 it('skips validation for disabled loops with no blocks inside', () => {

Callers 1

builder.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected