(html: string, chunkSize = 7)
| 19 | import { streamChunks } from "./helpers/simulate-stream"; |
| 20 | |
| 21 | function streamWithoutCrash(html: string, chunkSize = 7): void { |
| 22 | for (const chunk of streamChunks(html, chunkSize)) { |
| 23 | const { unmount } = render( |
| 24 | <StreamHtml isStreaming={true}>{chunk}</StreamHtml>, |
| 25 | ); |
| 26 | unmount(); |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | describe("Claude edge cases — streaming stress", () => { |
| 31 | it.each(Object.entries(CLAUDE_STREAM_SWEEP))( |
no test coverage detected