Supertest

JSON →
library 7.2.2 ·javascript
verified May 27, 2026

Supertest is an HTTP assertion library built on top of SuperAgent, designed for testing web applications and APIs in Node.js. It simplifies making HTTP requests to an application (or a raw http.Server instance) and asserting on the responses. Key features include automatically binding the server to an ephemeral port, chaining assertions for status codes, headers, and body content, and seamless integration with any JavaScript test framework. The current stable version is 7.2.2, with recent releases indicating an active maintenance schedule focused on bug fixes and dependency updates. It provides a high-level abstraction, allowing developers to write clear and concise HTTP tests while retaining the ability to leverage SuperAgent's lower-level API when needed. It is a fundamental tool for integration testing of Node.js web services, especially when using frameworks like Express or Koa.

total hits 19
actors 6 distinct systems
last hit 3d ago AhrefsBot
GPTBot
5
MetaBot
4
ChatGPT-User
2
Script
1
Search engines
1
Humans
2

top countries 🇺🇸 United States · 🇫🇷 France · 🇨🇦 Canada · 🇧🇪 Belgium · 🇩🇪 Germany