(lines: unknown[])
| 20 | const originalFetch = globalThis.fetch; |
| 21 | |
| 22 | function commandCodeStream(lines: unknown[]) { |
| 23 | const text = lines.map((l) => JSON.stringify(l)).join("\n") + "\n"; |
| 24 | return new Response(text, { status: 200, headers: { "Content-Type": "application/x-ndjson" } }); |
| 25 | } |
| 26 | |
| 27 | test.after(() => { |
| 28 | globalThis.fetch = originalFetch; |
no outgoing calls
no test coverage detected