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

Function createSnapshot

apps/sim/lib/workflows/executor/execution-core.test.ts:113–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111 }
112
113 const createSnapshot = () => ({
114 metadata: {
115 requestId: 'req-1',
116 workflowId: 'workflow-1',
117 userId: 'user-1',
118 workflowUserId: 'workflow-owner',
119 workspaceId: 'workspace-1',
120 triggerType: 'api',
121 executionId: 'execution-1',
122 triggerBlockId: undefined,
123 useDraftState: true,
124 isClientSession: false,
125 enforceCredentialAccess: false,
126 startTime: new Date().toISOString(),
127 },
128 workflow: {
129 id: 'workflow-1',
130 userId: 'workflow-owner',
131 variables: {},
132 },
133 input: { hello: 'world' },
134 workflowVariables: {},
135 selectedOutputs: [],
136 state: undefined,
137 })
138
139 beforeEach(() => {
140 vi.clearAllMocks()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected