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

Function createMockBlock

apps/sim/executor/dag/construction/edges.test.ts:7–17  ·  view source on GitHub ↗
(id: string, type = 'function', config: any = {})

Source from the content-addressed store, hash-verified

5import { EdgeConstructor } from './edges'
6
7function createMockBlock(id: string, type = 'function', config: any = {}): SerializedBlock {
8 return {
9 id,
10 metadata: { id: type, name: `Block ${id}` },
11 position: { x: 0, y: 0 },
12 config: { tool: type, params: config },
13 inputs: {},
14 outputs: {},
15 enabled: true,
16 }
17}
18
19function createMockNode(id: string): DAGNode {
20 return {

Callers 2

createMockNodeFunction · 0.70
edges.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected