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

Function createMockWorkflow

apps/sim/executor/dag/construction/edges.test.ts:41–59  ·  view source on GitHub ↗
(
  blocks: SerializedBlock[],
  connections: Array<{
    source: string
    target: string
    sourceHandle?: string
    targetHandle?: string
  }>,
  loops: Record<string, SerializedLoop> = {},
  parallels: Record<string, any> = {}
)

Source from the content-addressed store, hash-verified

39}
40
41function createMockWorkflow(
42 blocks: SerializedBlock[],
43 connections: Array<{
44 source: string
45 target: string
46 sourceHandle?: string
47 targetHandle?: string
48 }>,
49 loops: Record<string, SerializedLoop> = {},
50 parallels: Record<string, any> = {}
51): SerializedWorkflow {
52 return {
53 version: '1',
54 blocks,
55 connections,
56 loops,
57 parallels,
58 }
59}
60
61describe('EdgeConstructor', () => {
62 let edgeConstructor: EdgeConstructor

Callers 1

edges.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected