# forwardemail/supertest

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/forwardemail-supertest).**

14,373 stars · 781 forks · JavaScript · MIT

## Links

- GitHub: https://github.com/forwardemail/supertest
- awesome-repositories: https://awesome-repositories.com/repository/forwardemail-supertest.md

## Topics

`assertions` `node` `superagent` `supertest`

## Description

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

## Tags

### Testing & Quality Assurance

- [Fluent Endpoint Testers](https://awesome-repositories.com/f/testing-quality-assurance/general-testing-utilities/test-utilities-assertions/network-api-mocking/http-response-assertions/fluent-endpoint-testers.md) — Core purpose: testing Node.js HTTP servers with a fluent API for requests and assertions. ([source](https://cdn.jsdelivr.net/gh/forwardemail/supertest@master/README.md))
- [API Endpoint Testing](https://awesome-repositories.com/f/testing-quality-assurance/api-endpoint-testing.md) — Core purpose: testing HTTP endpoints with a fluent chain of assertions on status, headers, body, and cookies.
- [Fluent Assertion Chaining](https://awesome-repositories.com/f/testing-quality-assurance/fluent-assertion-chaining.md) — Implements fluent assertion chaining by returning the request object for sequential configuration.
- [HTTP Response Assertions](https://awesome-repositories.com/f/testing-quality-assurance/general-testing-utilities/test-utilities-assertions/network-api-mocking/http-response-assertions.md) — Ships built-in matchers for verifying HTTP response status, headers, body, and cookies. ([source](https://cdn.jsdelivr.net/gh/forwardemail/supertest@master/README.md))
- [Fluent Assertions](https://awesome-repositories.com/f/testing-quality-assurance/unit-testing-frameworks/fluent-assertions.md) — Chains request setup, response assertions, and transformations in a single readable expression.
- [Ordered Expectation Chains](https://awesome-repositories.com/f/testing-quality-assurance/api-expectation-frameworks/ordered-expectation-chains.md) — Enables sequential assertion chains with response transformations between checks. ([source](https://cdn.jsdelivr.net/gh/forwardemail/supertest@master/README.md))

### Networking & Communication

- [HTTP Client Libraries](https://awesome-repositories.com/f/networking-communication/http-client-libraries.md) — Wraps the SuperAgent HTTP library to provide a unified interface for requests and responses.
- [Test Clients](https://awesome-repositories.com/f/networking-communication/http-clients/http-servers/test-clients.md) — Core identity: a tool for sending requests to HTTP servers and verifying responses.

### Programming Languages & Runtimes

- [Integration Test Libraries](https://awesome-repositories.com/f/programming-languages-runtimes/node-js-network-libraries/http-mocking-libraries/integration-test-libraries.md) — Core identity: an assertion library for testing Node.js HTTP servers with fluent expectations.

### Security & Cryptography

- [Basic Authentication](https://awesome-repositories.com/f/security-cryptography/basic-authentication.md) — Attaches HTTP Basic credentials to requests using the same interface as the underlying HTTP client. ([source](https://cdn.jsdelivr.net/gh/forwardemail/supertest@master/README.md))
- [Cookie State Verification](https://awesome-repositories.com/f/security-cryptography/cookie-management/cookie-state-verification.md) — Provides cookie state verification assertions for integration tests. ([source](https://cdn.jsdelivr.net/gh/forwardemail/supertest@master/README.md))

### Web Development

- [Assertion Utilities](https://awesome-repositories.com/f/web-development/backend-development/request-response-handling/http-response-handling/cookie-management-utilities/assertion-utilities.md) — Provides utilities for verifying cookie presence, absence, and options in HTTP responses.
- [Request Lifecycle Hooks](https://awesome-repositories.com/f/web-development/request-lifecycle-hooks.md) — Intercepts request preparation and response parsing to inject authentication and transformation logic.
