supertest@7.2.2
// SuperAgent driven library for testing HTTP servers
$ npm install supertest
downloads/wk
15,128,820
license
MIT
version
7.2.2
published
Jan 6, 2026
What is supertest?
Supertest is a testing library that makes it easy to write tests for HTTP servers by providing a simple interface for making requests and asserting responses. It's built on top of SuperAgent and works well with popular testing frameworks, letting developers verify that their APIs behave correctly without needing to manually start servers or manage complex test setup. Developers use it to test REST APIs, check status codes, validate response bodies, and ensure their server endpoints work as expected.
Links
Keywords
Dependencies (3)
Maintainers
defunctzombie, kof, mikelax, niftylettuce, titanism, tjholowaychuk