{"library":"http-test-server","type":"library","category":null,"description":"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.","language":"javascript","status":"maintenance","version":"3.0.0","tags":["javascript","typescript"],"last_verified":"Sat May 09","install":[{"cmd":"npm install http-test-server","imports":["import httpTestServer from 'http-test-server'","const httpTestServer = require('http-test-server')","import type { ShutdownOptions } from 'http-test-server'"]},{"cmd":"yarn add http-test-server","imports":[]},{"cmd":"pnpm add http-test-server","imports":[]}],"homepage":null,"github":"https://github.com/kesla/http-test-server","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/http-test-server","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}