http-test-server

JSON →
library 3.0.0 ·javascript maintenance
verified May 9, 2026

A simple, promise-based HTTP server for integration testing in Node.js. v3.0.0 provides an async factory function that starts a server on a random port and returns an object with `baseUrl` and `shutdown()` method. It supports automatic shutdown and collects request body as Buffer. Unlike alternatives like `nock` or `supertest`, this uses a real HTTP server, making it suitable for end-to-end API testing. Released with TypeScript definitions. Maintenance mode since 2022.

total hits 8
actors 2 distinct systems
last hit 9d ago AhrefsBot
MetaBot
3
Humans
2

top countries 🇨🇦 Canada · 🇺🇸 United States · 🇩🇪 Germany