@nestjs/testing breaking changes
Updated December 4, 2026
On this page
Latest version 12.6.3, released November 26, 2026. Source repository
Its 12.0.0 release requires Node.js 20.19 or later. Node.js end of life dates.
- From 11.2.8 to 12.6.0: 65 breaking changes in 9 versions.
- From 10.0.0 to 12.6.0: 78 breaking changes in 14 versions.
@nestjs/testing 12.6.0 breaking changes
- Behavior changed
Gateways now reject new clients as soon as the application starts closing. github.com - 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 - 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 - 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 - 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 - Behavior changed
Kafka, MQTT, Redis and RabbitMQ clients now fail pending requests with Connection closed where they used to wait forever. github.com - 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 - Behavior changed
@Res
A method that overrides a @Res({ passthrough: true }) handler with a plain @Res() no longer inherits passthrough. github.com - Behavior changed
createNestApplication
logger: true now keeps the logger on for createNestApplication(), where it used to turn logging off. github.com - Behavior changed
createNestMicroservice
forceConsole: true now logs through console for createNestMicroservice(), as NestFactory does. github.com
@nestjs/testing 12.5.1 breaking changes
- 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
@nestjs/testing 12.5.0 breaking changes
- Behavior changed
A RabbitMQ wildcard message whose pattern names a different handler than its routing key is no longer handled. github.com - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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
And 8 more in this version. Sign up to see every change
@nestjs/testing 12.4.1 breaking changes
- 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
@nestjs/testing 12.3.0 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 - 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
@nestjs/testing 12.2.0 breaking changes
- Behavior changed
Kafka messages with headers provided as a string or array send no headers now. github.com - Behavior changed
Files uploaded with a request that a pipe rejected are now deleted from storage. github.com - Behavior changed
A pattern key longer than 256 characters no longer matches any handler. github.com - Behavior changed
BaseExceptionFilter
Errors created with expose false now return the standard reason phrase in the response instead of their message. github.com - 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 - 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 - Behavior changed
parser.maxMessageSize
Kafka messages above 16 MiB after decompression are logged and skipped by default. github.com - Behavior changed
ValidationPipe
A request body that is an array or primitive for a validated class now gets a 400 response. github.com - 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 - 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
Older versions
9 older versions, each with its first changes. Sign up to see every change
Show 9 older versions
@nestjs/testing 12.1.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 - Behavior changed
Request-scoped global enhancers now take effect instead of being silently ignored, so existing enhancers may start running. github.com
And 1 more in this version.
@nestjs/testing 12.0.2 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 - 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
And 1 more in this version.
@nestjs/testing 12.0.0 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 - 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
And 15 more in this version.
@nestjs/testing 11.2.8 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 - 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
And 2 more in this version.
@nestjs/testing 11.1.14 breaking changes
- 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
@nestjs/testing 11.1.9 breaking changes
- 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
@nestjs/testing 11.0.2 breaking changes
- Signature changed
Test.createTestingModule
Was static createTestingModule(metadata: ModuleMetadata): TestingModuleBuilder; now static createTestingModule(metadata: ModuleMetadata, options?: TestingModuleOptions): TestingModuleBuilder. npmjs.com - Signature changed
TestingModuleBuilder.constructor
Was constructor(metadataScanner: MetadataScanner, metadata: ModuleMetadata); now constructor(metadataScanner: MetadataScanner, metadata: ModuleMetadata, options?: TestingModuleOptions). npmjs.com
@nestjs/testing 11.0.0 breaking changes
- Removed
Code must run on Node.js 20 or later; Node.js 16 and 18 are no longer supported. github.com - Removed
Module exports can no longer be promises; code relying on promise-valued exports must change. github.com
And 3 more in this version.
@nestjs/testing 10.0.0 breaking changes
- Removed
Node v12 is no longer supported, so users must run Node v16 or newer. github.com - 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
And 2 more in this version.
Related packages
- @nestjs/microservices
- @nestjs/common
- @nestjs/core
- @nestjs/platform-fastify
- @nestjs/platform-express
- @nestjs/cli
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.