SuperTest
Node.js library that tests HTTP servers with a fluent API of request and response assertions.
SuperTest tests Node.js HTTP servers by sending them requests and asserting on the responses, through a fluent API of request and response assertions. It is built on superagent, which the README names as the library it is driven by.
It is installed as a development dependency from npm. The README says it works with any test framework and shows examples with mocha.
Worth knowing
An expect() failure inside an end() callback does not throw. The README says the test has to rethrow the error or pass it to done to fail.
Identity
- Status
- Active
- Maintainer
- TJ Holowaychuk3
- Maintained by
- Individual3
- First release
- 20126
Rendering and deploy
- Install with
- npm2
Releases
Adoption
Sources
- 2026-11-16: links, Written in, Runtime, License, GitHub stars
api.github.com/repos/forwardemail/supertest - 2026-11-16: links, Categories, Built on, Install with
raw.githubusercontent.com/forwardemail/supertest/master/README.md - 2026-11-16: Maintainer, Maintained by
raw.githubusercontent.com/forwardemail/supertest/master/LICENSE - 2026-11-16: Minimum runtime
raw.githubusercontent.com/forwardemail/supertest/v7.3.2/package.json - 2026-11-16: Current major version, Last release
api.github.com/repos/forwardemail/supertest/releases - 2026-11-16: First release
registry.npmjs.org/supertest - 2026-11-16: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/supertest - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/supertest - 2026-11-16: Contributors
api.github.com/repos/forwardemail/supertest/contributors?per_page=1