(stream: ReadableStream)
| 114 | import { createSSEStream } from './start' |
| 115 | |
| 116 | async function drainStream(stream: ReadableStream) { |
| 117 | const reader = stream.getReader() |
| 118 | while (true) { |
| 119 | const { done } = await reader.read() |
| 120 | if (done) break |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | describe('createSSEStream terminal error handling', () => { |
| 125 | beforeEach(() => { |