---
title: "supertest 7.2.2 Breaking Changes on npm | Since.dev"
description: "What each supertest release removed, renamed or changed: 5 breaking changes in 4 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/supertest
last_updated: 2026-12-04
---

# supertest breaking changes

supertest 7.2.2 (January 6, 2026) is its newest release with breaking changes. The first: Replaces the should dependency with native assertions in the cookies module in supertest 7.2.2. Every breaking API change we have recorded in supertest on npm: 5 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `7.3.2`, released November 7, 2026. [Source repository](https://github.com/ladjs/supertest)

Its 7.0.0 release requires Node.js 14.16.0 or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [6.0.0](#v-6-0-0) to [7.2.2](#v-7-2-2): 4 breaking changes in 3 versions.

## supertest 7.2.2 breaking changes

supertest 7.2.2, released January 6, 2026: 1 breaking change.

- **Behavior changed**  

The cookies module now uses native assertions instead of the should dependency. Code that relied on should being loaded through supertest may need its own install. [github.com](https://github.com/forwardemail/supertest/releases/tag/v7.2.2)

## supertest 7.1.3 breaking changes

supertest 7.1.3, released July 7, 2025: 1 breaking change.

- **Behavior changed**  

This release reverts the automatic closing of the server that was added in 7.1.2. Code that relied on that automatic closing must now close the server itself. [github.com](https://github.com/forwardemail/supertest/releases/tag/v7.1.3)

## supertest 7.0.0 breaking changes

supertest 7.0.0, released April 24, 2024: 2 breaking changes.

- **Default changed**  

The package no longer supports Node.js versions older than 14.16.0; users on older Node.js must upgrade their runtime before using this release. [github.com](https://github.com/forwardemail/supertest/releases/tag/v7.0.0)
- **Signature changed** `Test.expect`  

Was expect(body: object, callback?: CallbackHandler): this expect(status: number, body: any, callback?: CallbackHandler): this; now expect\<T extends object = object>(body: T, callback?: CallbackHandler): this expect\<T>(status: number... [npmjs.com](https://www.npmjs.com/package/supertest/v/7.0.0)

## supertest 6.0.0 breaking changes

supertest 6.0.0, released October 28, 2020: 1 breaking change.

- **Behavior changed**  

Requests now set the host header rather than rewriting the host into the URL. Code that relied on the old URL-based host behavior should check its requests. [github.com](https://github.com/forwardemail/supertest/releases/tag/v6.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
