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

# @types/supertest breaking changes

@types/supertest 7.2.1 (July 14, 2026) is its newest release with breaking changes. The first: Signature changed Test.expect. Every breaking API change we have recorded in @types/supertest on npm: 21 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `7.2.1`, released July 14, 2026. [Source repository](https://github.com/DefinitelyTyped/DefinitelyTyped)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [6.0.2](#v-6-0-2) to [7.2.1](#v-7-2-1): 1 breaking change in 1 version.
- From [2.0.0](#v-2-0-0) to [7.2.1](#v-7-2-1): 19 breaking changes in 4 versions.

## @types/supertest 7.2.1 breaking changes

@types/supertest 7.2.1, released July 14, 2026: 1 breaking change.

- **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/@types/supertest/v/7.2.1)

## @types/supertest 6.0.2 breaking changes

@types/supertest 6.0.2, released December 27, 2023: 1 breaking change.

- **Signature changed** `SuperTestStatic.agent`  

Was agent: typeof stAgent; now agent: typeof stAgent & ((app?: App, options?: STAgentOptions) => InstanceType\<typeof stAgent>). [npmjs.com](https://www.npmjs.com/package/@types/supertest/v/6.0.2)

## @types/supertest 6.0.1 breaking changes

@types/supertest 6.0.1, released December 22, 2023: 2 breaking changes.

- **Signature changed** `Test.app`  

Was app: Server; now app: App. [npmjs.com](https://www.npmjs.com/package/@types/supertest/v/6.0.1)
- **Signature changed** `Test.serverAddress`  

Was serverAddress(app: Server, path: string): string; now serverAddress(app: App, path: string): string. [npmjs.com](https://www.npmjs.com/package/@types/supertest/v/6.0.1)

## @types/supertest 6.0.0 breaking changes

@types/supertest 6.0.0, released December 21, 2023: 15 breaking changes.

- **Removed** `agent`  

agent was removed in @types/supertest 6.0.0 [npmjs.com](https://www.npmjs.com/package/@types/supertest/v/6.0.0)
- **Removed** `AgentOptions.ca`  

AgentOptions.ca was removed in @types/supertest 6.0.0 [npmjs.com](https://www.npmjs.com/package/@types/supertest/v/6.0.0)
- **Removed** `SuperAgentTest.host`  

SuperAgentTest.host was removed in @types/supertest 6.0.0 [npmjs.com](https://www.npmjs.com/package/@types/supertest/v/6.0.0)
- **Removed** `SuperTestWithHost`  

SuperTestWithHost was removed in @types/supertest 6.0.0 [npmjs.com](https://www.npmjs.com/package/@types/supertest/v/6.0.0)
- **Signature changed** `AgentOptions`  

Was interface AgentOptions extends Options; now type AgentOptions = STAgentOptions. [npmjs.com](https://www.npmjs.com/package/@types/supertest/v/6.0.0)
- **Signature changed** `CallbackHandler`  

Was type CallbackHandler = (err: any, res: Response) => void; now type CallbackHandler = superagent.CallbackHandler. [npmjs.com](https://www.npmjs.com/package/@types/supertest/v/6.0.0)
- **Signature changed** `default`  

Was function supertest(app: any, options?: supertest.Options): supertest.SuperTest\<supertest.Test>; now const supertest: supertest.SuperTestStatic. [npmjs.com](https://www.npmjs.com/package/@types/supertest/v/6.0.0)
- **Signature changed** `Request`  

Was interface Request extends superagent.SuperAgentRequest; now type Request = superagent.SuperAgentRequest. [npmjs.com](https://www.npmjs.com/package/@types/supertest/v/6.0.0)
- **Signature changed** `Response`  

Was interface Response extends superagent.Response; now type Response = superagent.Response. [npmjs.com](https://www.npmjs.com/package/@types/supertest/v/6.0.0)
- **Signature changed** `SuperAgentTest`  

Was type SuperAgentTest = & SuperTestWithHost\<Test> & Pick\<Request, | "use" | "on" | "set" | "query" | "type" | "accept" | "auth" | "withCredentials" | "retry" | "ok" | "redirects" | "timeout" | "buffer" | "serialize" | "parse" | "ca" |... [npmjs.com](https://www.npmjs.com/package/@types/supertest/v/6.0.0)

And 5 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## @types/supertest 2.0.0 breaking changes

@types/supertest 2.0.0, released November 28, 2016: 2 breaking changes.

- **Signature changed** `default`  

Was function supertest(app: any): supertest.SuperTest\<any>; now function supertest(app: any): supertest.SuperTest\<supertest.Test>. [npmjs.com](https://www.npmjs.com/package/@types/supertest/v/2.0.0)
- **Signature changed** `SuperTest`  

Was interface SuperTest\<T extends Request> extends superagent.SuperAgent\<T>; now interface SuperTest\<T> extends superagent.SuperAgent\<T>. [npmjs.com](https://www.npmjs.com/package/@types/supertest/v/2.0.0)

## Related packages

- [@types/chrome](https://since.dev/packages/npm/@types/chrome.md)
- [@types/node](https://since.dev/packages/npm/@types/node.md)
- [@types/react](https://since.dev/packages/npm/@types/react.md)
- [@types/jqueryui](https://since.dev/packages/npm/@types/jqueryui.md)
- [@types/chrome-remote-interface](https://since.dev/packages/npm/@types/chrome-remote-interface.md)
- [@types/three](https://since.dev/packages/npm/@types/three.md)

## 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.
