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

Function createMockBlock

apps/sim/executor/execution/engine.test.ts:39–49  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

37import { ExecutionEngine } from './engine'
38
39function createMockBlock(id: string): SerializedBlock {
40 return {
41 id,
42 metadata: { id: 'test', name: 'Test Block' },
43 position: { x: 0, y: 0 },
44 config: { tool: '', params: {} },
45 inputs: {},
46 outputs: {},
47 enabled: true,
48 }
49}
50
51function createMockNode(id: string, blockType = 'test'): DAGNode {
52 return {

Callers 1

createMockNodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected