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

Function makeContext

apps/sim/lib/workspace-events/payload.test.ts:18–28  ·  view source on GitHub ↗
(overrides: Partial<ExecutionEventContext> = {})

Source from the content-addressed store, hash-verified

16const payloadKeys = Object.keys(SIM_EVENT_PAYLOAD_FIELDS).sort()
17
18function makeContext(overrides: Partial<ExecutionEventContext> = {}): ExecutionEventContext {
19 return {
20 workflowId: 'wf-source',
21 executionId: 'exec-1',
22 status: 'error',
23 durationMs: 1000,
24 cost: 0.25,
25 finalOutput: { result: 42 },
26 ...overrides,
27 }
28}
29
30describe('payload builders align with the shared field constants', () => {
31 it('run-backed event payload has exactly the declared keys', () => {

Callers 1

payload.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected