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

Function createMockNodeOrchestrator

apps/sim/executor/execution/engine.test.ts:124–137  ·  view source on GitHub ↗
(executeDelay = 0)

Source from the content-addressed store, hash-verified

122}
123
124function createMockNodeOrchestrator(executeDelay = 0): MockNodeOrchestrator {
125 const mock = {
126 executionCount: 0,
127 executeNode: vi.fn().mockImplementation(async () => {
128 mock.executionCount++
129 if (executeDelay > 0) {
130 await sleep(executeDelay)
131 }
132 return { nodeId: 'test', output: {}, isFinalOutput: false }
133 }),
134 handleNodeCompletion: vi.fn(),
135 }
136 return mock as unknown as MockNodeOrchestrator
137}
138
139describe('ExecutionEngine', () => {
140 beforeEach(() => {

Callers 1

engine.test.tsFile · 0.85

Calls 1

sleepFunction · 0.90

Tested by

no test coverage detected