( execution: R, )
| 60 | |
| 61 | /** Narrow an execution result to "completed", failing with the run's text. */ |
| 62 | const completed = <R extends { status: string; text: string }>( |
| 63 | execution: R, |
| 64 | ): Extract<R, { status: "completed" }> => { |
| 65 | if (execution.status !== "completed") { |
| 66 | throw new Error(`execution did not complete (status=${execution.status}): ${execution.text}`); |
| 67 | } |
| 68 | return execution as Extract<R, { status: "completed" }>; |
| 69 | }; |
| 70 | |
| 71 | scenario( |
| 72 | "Integrations · an OpenAPI spec round-trips the catalog: add, fetch, update, remove", |
no outgoing calls
no test coverage detected