Supertest
Testing Streaming Responses and Server-Sent Events with Supertest
Supertest works well for standard request-response APIs, but streaming responses — chunked transfers, Server-Sent Events, NDJSON — need extra handling. This post covers how to test streaming endpoints in Node.js using Supertest's lower-level API and, when needed, raw HTTP clients. Key Takeaways Supertest can handle streaming