(overrides: Partial<ExecutionStatusResponse> = {})
| 71 | import type { ExecutionLog, ExecutionStatusResponse } from '@/schemas/execution'; |
| 72 | |
| 73 | const baseStatus = (overrides: Partial<ExecutionStatusResponse> = {}): ExecutionStatusResponse => ({ |
| 74 | runId: 'run-1', |
| 75 | workflowId: 'wf-1', |
| 76 | status: 'RUNNING', |
| 77 | startedAt: new Date().toISOString(), |
| 78 | updatedAt: new Date().toISOString(), |
| 79 | taskQueue: 'shipsec-default', |
| 80 | historyLength: 0, |
| 81 | ...overrides, |
| 82 | }); |
| 83 | |
| 84 | const event = (overrides: Partial<ExecutionLog> = {}): ExecutionLog => ({ |
| 85 | id: overrides.id ?? Math.random().toString(16).slice(2), |
no outgoing calls
no test coverage detected