@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
On this page
Latest version 7.2.1, released July 14, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 6.0.2 to 7.2.1: 1 breaking change in 1 version.
- From 2.0.0 to 7.2.1: 19 breaking changes in 4 versions.
@types/supertest 7.2.1 breaking changes
- 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
@types/supertest 6.0.2 breaking changes
- Signature changed
SuperTestStatic.agent
Was agent: typeof stAgent; now agent: typeof stAgent & ((app?: App, options?: STAgentOptions) => InstanceType<typeof stAgent>). npmjs.com
@types/supertest 6.0.1 breaking changes
- Signature changed
Test.app
Was app: Server; now app: App. npmjs.com - Signature changed
Test.serverAddress
Was serverAddress(app: Server, path: string): string; now serverAddress(app: App, path: string): string. npmjs.com
@types/supertest 6.0.0 breaking changes
- Removed
agent
agent was removed in @types/supertest 6.0.0 npmjs.com - Removed
AgentOptions.ca
AgentOptions.ca was removed in @types/supertest 6.0.0 npmjs.com - Removed
SuperAgentTest.host
SuperAgentTest.host was removed in @types/supertest 6.0.0 npmjs.com - Removed
SuperTestWithHost
SuperTestWithHost was removed in @types/supertest 6.0.0 npmjs.com - Signature changed
AgentOptions
Was interface AgentOptions extends Options; now type AgentOptions = STAgentOptions. npmjs.com - Signature changed
CallbackHandler
Was type CallbackHandler = (err: any, res: Response) => void; now type CallbackHandler = superagent.CallbackHandler. npmjs.com - Signature changed
default
Was function supertest(app: any, options?: supertest.Options): supertest.SuperTest<supertest.Test>; now const supertest: supertest.SuperTestStatic. npmjs.com - Signature changed
Request
Was interface Request extends superagent.SuperAgentRequest; now type Request = superagent.SuperAgentRequest. npmjs.com - Signature changed
Response
Was interface Response extends superagent.Response; now type Response = superagent.Response. npmjs.com - 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
And 5 more in this version. Sign up to see every change
@types/supertest 2.0.0 breaking changes
- Signature changed
default
Was function supertest(app: any): supertest.SuperTest<any>; now function supertest(app: any): supertest.SuperTest<supertest.Test>. npmjs.com - Signature changed
SuperTest
Was interface SuperTest<T extends Request> extends superagent.SuperAgent<T>; now interface SuperTest<T> extends superagent.SuperAgent<T>. npmjs.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.