( chunks: Array<StreamChunk>, )
| 6 | |
| 7 | // Helper to create a mock connect-based adapter from StreamChunks |
| 8 | function createMockConnection( |
| 9 | chunks: Array<StreamChunk>, |
| 10 | ): ConnectConnectionAdapter { |
| 11 | return { |
| 12 | async *connect() { |
| 13 | for (const chunk of chunks) { |
| 14 | yield chunk |
| 15 | } |
| 16 | }, |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | describe('GenerationClient', () => { |
| 21 | describe('fetcher mode', () => { |
no outgoing calls
no test coverage detected