( chunks: Array<Record<string, unknown>>, )
| 8 | |
| 9 | // Helper to create mock async iterable |
| 10 | async function* createMockStream( |
| 11 | chunks: Array<Record<string, unknown>>, |
| 12 | ): AsyncGenerator<StreamChunk> { |
| 13 | for (const chunk of chunks) { |
| 14 | yield chunk as StreamChunk |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | // Helper to read ReadableStream |
| 19 | async function readStream(stream: ReadableStream<Uint8Array>): Promise<string> { |
no outgoing calls
no test coverage detected