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

Function createMockBlock

apps/sim/lib/workflows/diff/diff-engine.test.ts:106–117  ·  view source on GitHub ↗
(overrides: Partial<BlockState> = {})

Source from the content-addressed store, hash-verified

104import { WorkflowDiffEngine } from './diff-engine'
105
106function createMockBlock(overrides: Partial<BlockState> = {}): BlockState {
107 return {
108 id: 'block-1',
109 type: 'agent',
110 name: 'Test Block',
111 enabled: true,
112 position: { x: 0, y: 0 },
113 subBlocks: {},
114 outputs: {},
115 ...overrides,
116 } as BlockState
117}
118
119function createMockWorkflowState(blocks: Record<string, BlockState>): WorkflowState {
120 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected