# forwardemail/supertest

🕷 Super-agent driven library for testing node.js HTTP servers using a fluent API.   Maintained for @forwardemail, @ladjs, @spamscanner, @breejs, @cabinjs, and @lassjs.

Repository: https://github.com/forwardemail/supertest
Canonical: https://ross.abutalabs.com/products/supertest
Language: JavaScript
License: MIT
License Family: permissive
Topics: supertest, superagent, assertions, node
Last push: 2026-04-02T04:24:49+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 75, release rhythm 65, longevity 100
- inputs: {"age_days": 5180, "days_push": 153, "days_rel": 239, "gap_med": 14, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 14396, forks 782 (observed 2026-08-28T04:11:06.913998+00:00)

## What it is
SuperTest is a Node.js library for testing HTTP servers using a fluent, chainable API built on top of superagent. It provides high-level HTTP assertions that work with any test framework and can bind servers to ephemeral ports automatically.

## Use cases
- test express endpoints with assertions
- write integration tests for node.js http servers
- assert response status headers and body in mocha
- test rest apis without managing ports
- make http requests with cookies in tests
- test http2 endpoints

## When to choose
- you are testing node.js HTTP servers or frameworks like express or koa
- you want fluent chainable assertions that work with any test runner
- you want automatic ephemeral port binding so you don't track ports

## When to avoid
- you are testing browser frontends rather than HTTP servers
- you need load or performance testing rather than functional assertions
- you are testing non-node.js backends

## Facets
- artifact type: library
- maturity: stable
- function: testing, http-client, e2e-testing
- domain: testing, web-development, developer-tools, apis
- platform: -
- tags: http-assertions, superagent, fluent-api, integration-testing, express, nodejs, javascript

## Member repositories
- forwardemail/supertest (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:06.913998+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:12:36.381333+00:00, confidence not recorded.
  - readme: https://github.com/forwardemail/supertest (fetched 2026-08-28T04:11:06.913998+00:00, sha 6c4b2c3a1463)
- Data as of 2026-08-30T08:39:29.467469+00:00.
