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

Function makeLog

apps/sim/lib/workspace-events/emitter.test.ts:93–112  ·  view source on GitHub ↗
(overrides: Partial<WorkflowExecutionLog> = {})

Source from the content-addressed store, hash-verified

91}
92
93function makeLog(overrides: Partial<WorkflowExecutionLog> = {}): WorkflowExecutionLog {
94 return {
95 id: 'log-1',
96 workflowId: 'wf-source',
97 executionId: 'exec-1',
98 stateSnapshotId: 'snap-1',
99 level: 'error',
100 trigger: 'manual',
101 startedAt: '2026-06-09T00:00:00.000Z',
102 endedAt: '2026-06-09T00:00:01.000Z',
103 totalDurationMs: 1000,
104 executionData: {
105 error: 'boom',
106 finalOutput: { result: 42 },
107 } as WorkflowExecutionLog['executionData'],
108 cost: { total: 0.25 } as WorkflowExecutionLog['cost'],
109 createdAt: '2026-06-09T00:00:01.000Z',
110 ...overrides,
111 }
112}
113
114describe('emitExecutionCompletedEvent', () => {
115 beforeEach(() => {

Callers 1

emitter.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected