---
title: "@nestjs/testing 12.6.0 Breaking Changes on npm | Since.dev"
description: "What each @nestjs/testing release removed, renamed or changed: 82 breaking changes in 15 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@nestjs/testing
last_updated: 2026-12-04
---

# @nestjs/testing breaking changes

@nestjs/testing 12.6.0 (November 20, 2026) is its newest release with breaking changes, 10 of them. The first: Gateways reject new clients once application closing starts in @nestjs/testing 12.6.0. Every breaking API change we have recorded in @nestjs/testing on npm: 82 breaking changes in 15 versions. Below, its 15 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `12.6.3`, released November 26, 2026. [Source repository](https://github.com/nestjs/nest)

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

- From [11.2.8](#v-11-2-8) to [12.6.0](#v-12-6-0): 65 breaking changes in 9 versions.
- From [10.0.0](#v-10-0-0) to [12.6.0](#v-12-6-0): 78 breaking changes in 14 versions.

## @nestjs/testing 12.6.0 breaking changes

@nestjs/testing 12.6.0, released November 20, 2026: 10 breaking changes.

- **Behavior changed**  

Gateways now reject new clients as soon as the application starts closing. [github.com](https://github.com/nestjs/nest/releases/tag/v12.6.0)
- **Behavior changed**  

Closing the Kafka server now waits for replies in progress, for gracePeriod (10 s by default) at most, after the consumer disconnects. [github.com](https://github.com/nestjs/nest/releases/tag/v12.6.0)
- **Behavior changed**  

Routes on host patterns like :tenant.example.com may now be reported as conflicting with other routes, which can break startup for existing apps. [github.com](https://github.com/nestjs/nest/releases/tag/v12.6.0)
- **Behavior changed**  

listen() now fails with Connection closed when the NATS or MQTT server is closed before its client connects, where it used to start. [github.com](https://github.com/nestjs/nest/releases/tag/v12.6.0)
- **Behavior changed**  

A custom parameter decorator that gives the handler the response object now passes it as it is, with no pipe run on it, as with @Res(), on every adapter. [github.com](https://github.com/nestjs/nest/releases/tag/v12.6.0)
- **Behavior changed**  

Kafka, MQTT, Redis and RabbitMQ clients now fail pending requests with Connection closed where they used to wait forever. [github.com](https://github.com/nestjs/nest/releases/tag/v12.6.0)
- **Behavior changed**  

Calls still running when gracePeriod (10 s by default) expires are now cancelled instead of being waited on without limit. Raise gracePeriod for long-running streams. [github.com](https://github.com/nestjs/nest/releases/tag/v12.6.0)
- **Behavior changed** `@Res`  

A method that overrides a @Res({ passthrough: true }) handler with a plain @Res() no longer inherits passthrough. [github.com](https://github.com/nestjs/nest/releases/tag/v12.6.0)
- **Behavior changed** `createNestApplication`  

logger: true now keeps the logger on for createNestApplication(), where it used to turn logging off. [github.com](https://github.com/nestjs/nest/releases/tag/v12.6.0)
- **Behavior changed** `createNestMicroservice`  

forceConsole: true now logs through console for createNestMicroservice(), as NestFactory does. [github.com](https://github.com/nestjs/nest/releases/tag/v12.6.0)

## @nestjs/testing 12.5.1 breaking changes

@nestjs/testing 12.5.1, released November 16, 2026: 1 breaking change.

- **Behavior changed**  

Dates such as February 30 that were previously accepted by the parse date pipe are now rejected, so code relying on the old lenient parsing must handle the validation error. [github.com](https://github.com/nestjs/nest/releases/tag/v12.5.1)

## @nestjs/testing 12.5.0 breaking changes

@nestjs/testing 12.5.0, released November 12, 2026: 18 breaking changes.

- **Behavior changed**  

A RabbitMQ wildcard message whose pattern names a different handler than its routing key is no longer handled. [github.com](https://github.com/nestjs/nest/releases/tag/v12.5.0)
- **Behavior changed**  

Kafka events can no longer request a reply through reply headers, and replies no longer carry them. Code that depends on reply headers must change. [github.com](https://github.com/nestjs/nest/releases/tag/v12.5.0)
- **Behavior changed**  

An Error wrapped in an RpcException is now logged and answered as an internal server error; its numeric code is still used as the status. [github.com](https://github.com/nestjs/nest/releases/tag/v12.5.0)
- **Behavior changed**  

An upload option a route sets to undefined or null now keeps the module's value instead of overriding it. Use Infinity to lift a limit. [github.com](https://github.com/nestjs/nest/releases/tag/v12.5.0)
- **Behavior changed**  

An object with a key or value and other properties is now sent as the whole payload, not split into key and value. [github.com](https://github.com/nestjs/nest/releases/tag/v12.5.0)
- **Behavior changed**  

Transient providers that depend on durable providers are now built for each request, which changes how often their instances are created. [github.com](https://github.com/nestjs/nest/releases/tag/v12.5.0)
- **Behavior changed**  

A guard, interceptor or pipe that cannot run now fails the application at startup, for example an abstract class used as a token. Exception filters that cannot run only log a warning. [github.com](https://github.com/nestjs/nest/releases/tag/v12.5.0)
- **Behavior changed**  

In a standalone microservice, a gateway without a port now gets a server that does not listen, instead of one on a random port. [github.com](https://github.com/nestjs/nest/releases/tag/v12.5.0)
- **Behavior changed**  

A limit option given as NaN now gets its default value rather than turning the limit off. Code relying on NaN to disable a limit must pass 0 or Infinity instead. [github.com](https://github.com/nestjs/nest/releases/tag/v12.5.0)
- **Behavior changed** `ClassSerializerInterceptor`  

ClassSerializerInterceptor and StandardSchemaSerializerInterceptor now serialize every object a streamed response yields, so exclusions and schemas apply to each NDJSON line. [github.com](https://github.com/nestjs/nest/releases/tag/v12.5.0)

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

## @nestjs/testing 12.4.1 breaking changes

@nestjs/testing 12.4.1, released November 9, 2026: 1 breaking change.

- **Behavior changed**  

Core and common now emit a warning when decorator metadata is missing. Code that relies on silent behavior may see new log output. [github.com](https://github.com/nestjs/nest/releases/tag/v12.4.1)

## @nestjs/testing 12.3.0 breaking changes

@nestjs/testing 12.3.0, released October 27, 2026: 2 breaking changes.

- **Behavior changed**  

With the Fastify adapter, cors now runs before Nest middleware, changing the order in which they execute. Check middleware that depends on the previous order. [github.com](https://github.com/nestjs/nest/releases/tag/v12.3.0)
- **Behavior changed**  

Middleware now runs a single time for routes that differ only by version, where it could previously run more than once. Check middleware that has side effects. [github.com](https://github.com/nestjs/nest/releases/tag/v12.3.0)

## @nestjs/testing 12.2.0 breaking changes

@nestjs/testing 12.2.0, released October 19, 2026: 10 breaking changes.

- **Behavior changed**  

Kafka messages with headers provided as a string or array send no headers now. [github.com](https://github.com/nestjs/nest/releases/tag/v12.2.0)
- **Behavior changed**  

Files uploaded with a request that a pipe rejected are now deleted from storage. [github.com](https://github.com/nestjs/nest/releases/tag/v12.2.0)
- **Behavior changed**  

A pattern key longer than 256 characters no longer matches any handler. [github.com](https://github.com/nestjs/nest/releases/tag/v12.2.0)
- **Behavior changed** `BaseExceptionFilter`  

Errors created with expose false now return the standard reason phrase in the response instead of their message. [github.com](https://github.com/nestjs/nest/releases/tag/v12.2.0)
- **Behavior changed** `drainTimeout`  

A peer that leaves its responses unread is disconnected after 30 seconds by default. Set drainTimeout to 0 to disable this. [github.com](https://github.com/nestjs/nest/releases/tag/v12.2.0)
- **Behavior changed** `FileTypeValidator`  

A string fileType must match up to the end of the name, so font/woff no longer accepts font/woff2. Use a RegExp to match a broader pattern. [github.com](https://github.com/nestjs/nest/releases/tag/v12.2.0)
- **Behavior changed** `parser.maxMessageSize`  

Kafka messages above 16 MiB after decompression are logged and skipped by default. [github.com](https://github.com/nestjs/nest/releases/tag/v12.2.0)
- **Behavior changed** `ValidationPipe`  

A request body that is an array or primitive for a validated class now gets a 400 response. [github.com](https://github.com/nestjs/nest/releases/tag/v12.2.0)
- **Default changed** `reconnectOnConnackError`  

reconnectOnConnackError is now enabled by default, so refused connection attempts are retried. Set it to false to keep the previous behaviour. [github.com](https://github.com/nestjs/nest/releases/tag/v12.2.0)
- **Default changed** `ValidationPipe`  

Validation errors no longer carry the validated object unless validationError.target is set to true. An exceptionFactory that reads error.target now gets undefined. [github.com](https://github.com/nestjs/nest/releases/tag/v12.2.0)

## Older versions

9 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### @nestjs/testing 12.1.3 breaking changes

@nestjs/testing 12.1.3, released October 12, 2026: 3 breaking changes.

- **Behavior changed**  

Request-scoped class global enhancers were previously dropped silently. Now application startup fails for them, so remove or change those enhancers. [github.com](https://github.com/nestjs/nest/releases/tag/v12.1.3)
- **Behavior changed**  

Request-scoped global enhancers now take effect instead of being silently ignored, so existing enhancers may start running. [github.com](https://github.com/nestjs/nest/releases/tag/v12.1.3)

And 1 more in this version.

### @nestjs/testing 12.0.2 breaking changes

@nestjs/testing 12.0.2, released September 14, 2026: 3 breaking changes.

- **Behavior changed**  

Errors that carry a statusCode property are no longer mapped to HTTP responses automatically, so code relying on that mapping may respond differently. [github.com](https://github.com/nestjs/nest/releases/tag/v12.0.2)
- **Behavior changed** `normalizePath`  

Paths with repeated internal slashes now come out normalized, so code relying on the old output may see different paths. [github.com](https://github.com/nestjs/nest/releases/tag/v12.0.2)

And 1 more in this version.

### @nestjs/testing 12.0.0 breaking changes

@nestjs/testing 12.0.0, released August 27, 2026: 17 breaking changes.

- **Removed**  

Run Nest 12 applications on Node.js 20.19+ or 22.12+ on the 22.x line. The 21.x line is not supported. [docs.nestjs.com](https://docs.nestjs.com/migration-guide)
- **Removed**  

The release requires a newer Node.js: upgrade to v20.19+ or v22.12+, since the 21.x line is not supported. [github.com](https://github.com/nestjs/nest/releases/tag/v12.0.0)

And 15 more in this version.

### @nestjs/testing 11.2.8 breaking changes

@nestjs/testing 11.2.8, released October 23, 2026: 4 breaking changes.

- **Behavior changed**  

Validation errors no longer include the object that was validated. Code that reads it from validation errors must change. [github.com](https://github.com/nestjs/nest/releases/tag/v11.2.8)
- **Behavior changed**  

Middleware with transient scope is now mounted instead of silently skipped, and on v11 middleware listed after a transient one is also mounted. Review middleware that relied on being skipped. [github.com](https://github.com/nestjs/nest/releases/tag/v11.2.8)

And 2 more in this version.

### @nestjs/testing 11.1.14 breaking changes

@nestjs/testing 11.1.14, released February 17, 2026: 1 breaking change.

- **Signature changed** `requestOrigin`  

The type of requestOrigin was changed in the common package, so code that depends on its previous type may need updating. [github.com](https://github.com/nestjs/nest/releases/tag/v11.1.14)

### @nestjs/testing 11.1.9 breaking changes

@nestjs/testing 11.1.9, released November 14, 2025: 1 breaking change.

- **Behavior changed** `get`  

Calling get() on implicitly request-scoped trees now throws instead of returning an instance. Code that resolves such providers with get() must switch to resolve() or handle the error. [github.com](https://github.com/nestjs/nest/releases/tag/v11.1.9)

### @nestjs/testing 11.0.2 breaking changes

@nestjs/testing 11.0.2, released January 20, 2025: 2 breaking changes.

- **Signature changed** `Test.createTestingModule`  

Was static createTestingModule(metadata: ModuleMetadata): TestingModuleBuilder; now static createTestingModule(metadata: ModuleMetadata, options?: TestingModuleOptions): TestingModuleBuilder. [npmjs.com](https://www.npmjs.com/package/@nestjs/testing/v/11.0.2)
- **Signature changed** `TestingModuleBuilder.constructor`  

Was constructor(metadataScanner: MetadataScanner, metadata: ModuleMetadata); now constructor(metadataScanner: MetadataScanner, metadata: ModuleMetadata, options?: TestingModuleOptions). [npmjs.com](https://www.npmjs.com/package/@nestjs/testing/v/11.0.2)

### @nestjs/testing 11.0.0 breaking changes

@nestjs/testing 11.0.0, released January 16, 2025: 5 breaking changes.

- **Removed**  

Code must run on Node.js 20 or later; Node.js 16 and 18 are no longer supported. [github.com](https://github.com/nestjs/nest/releases/tag/v11.0.0)
- **Removed**  

Module exports can no longer be promises; code relying on promise-valued exports must change. [github.com](https://github.com/nestjs/nest/releases/tag/v11.0.0)

And 3 more in this version.

### @nestjs/testing 10.0.0 breaking changes

@nestjs/testing 10.0.0, released June 15, 2023: 4 breaking changes.

- **Removed**  

Node v12 is no longer supported, so users must run Node v16 or newer. [github.com](https://github.com/nestjs/nest/releases/tag/v10.0.0)
- **Behavior changed** `ValidationPipe`  

Optional boolean parameters handled by ValidationPipe transform differently in this release, so code relying on the old result may need review. [github.com](https://github.com/nestjs/nest/releases/tag/v10.0.0)

And 2 more in this version.

## Related packages

- [@nestjs/microservices](https://since.dev/packages/npm/@nestjs/microservices.md)
- [@nestjs/common](https://since.dev/packages/npm/@nestjs/common.md)
- [@nestjs/core](https://since.dev/packages/npm/@nestjs/core.md)
- [@nestjs/platform-fastify](https://since.dev/packages/npm/@nestjs/platform-fastify.md)
- [@nestjs/platform-express](https://since.dev/packages/npm/@nestjs/platform-express.md)
- [@nestjs/cli](https://since.dev/packages/npm/@nestjs/cli.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.
