(lines: unknown[])
| 27 | const originalFetch = globalThis.fetch; |
| 28 | |
| 29 | function commandCodeStream(lines: unknown[]) { |
| 30 | const text = lines.map((l) => JSON.stringify(l)).join("\n") + "\n"; |
| 31 | return new Response(text, { status: 200, headers: { "Content-Type": "application/x-ndjson" } }); |
| 32 | } |
| 33 | |
| 34 | test.after(() => { |
| 35 | globalThis.fetch = originalFetch; |
no outgoing calls
no test coverage detected