(seen: (ResponseLevel | undefined)[])
| 46 | // Records the responseLevel each step is invoked with, so the Phase 4 |
| 47 | // intermediate-step elision can be asserted end to end. |
| 48 | function recordingInvoke(seen: (ResponseLevel | undefined)[]) { |
| 49 | return async (req: BatchRequest): Promise<DaemonResponse> => { |
| 50 | seen.push(req.meta?.responseLevel); |
| 51 | return { ok: true, data: { command: req.command } }; |
| 52 | }; |
| 53 | } |
| 54 | |
| 55 | function batchRequest(commands: string[], responseLevel?: ResponseLevel): BatchRequest { |
| 56 | return { |
no test coverage detected
searching dependent graphs…