(overrides: Partial<ExecutionEventContext> = {})
| 16 | const payloadKeys = Object.keys(SIM_EVENT_PAYLOAD_FIELDS).sort() |
| 17 | |
| 18 | function 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 | |
| 30 | describe('payload builders align with the shared field constants', () => { |
| 31 | it('run-backed event payload has exactly the declared keys', () => { |