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

Function createMockNode

apps/sim/executor/execution/engine.test.ts:51–62  ·  view source on GitHub ↗
(id: string, blockType = 'test')

Source from the content-addressed store, hash-verified

49}
50
51function createMockNode(id: string, blockType = 'test'): DAGNode {
52 return {
53 id,
54 block: {
55 ...createMockBlock(id),
56 metadata: { id: blockType, name: `Block ${id}` },
57 },
58 outgoingEdges: new Map(),
59 incomingEdges: new Set(),
60 metadata: {},
61 }
62}
63
64function createMockContext(overrides: Partial<ExecutionContext> = {}): ExecutionContext {
65 return {

Callers 1

engine.test.tsFile · 0.70

Calls 1

createMockBlockFunction · 0.70

Tested by

no test coverage detected