npm / @nestjs/testing
@nestjs/testing
What changed in @nestjs/testing 11 to 12, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
3 breaking9 security1 deprecations2 tooling
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@nestjs/testing 129 changes
Breaking changes 3
Jest can load the ESM-only v12 packages only on Node.js v24.9 or later; older versions fail with ERR_REQUIRE_ASYNC_MODULE.
Include TypeScript 6 when updating the local CLI and schematics because @nestjs/schematics v12 requires TypeScript 6 as a peer dependency.
In v12.0.x, a subclass does not inherit optional markers from its parent's constructor, including when it has no constructor of its own; redeclared constructor parameters without markers can cause UnknownDependenciesException. Starting with v12.1, subclasses without their own constructor keep the…
Security 3
Nest: Unbounded memory growth in the NestJS TCP microservice transport
Nest: Remote process termination via a deeply nested microservice message pattern
@nestjs/platform-fastify: Path-scoped middleware bypass via absolute-form request targets
Deprecations 1
The timeout option of built-in database, microservice, and gRPC indicators is deprecated; chain withTimeout on the returned attempt instead.
Tooling 2
If npm reports a peer dependency conflict, update ts-jest and typescript-eslint within their current ranges before retrying the install command.
Vitest is now the primary default for ESM workflows and is used by generated ESM projects; @nestjs/testing remains test-runner agnostic.
@nestjs/testing 116 changes
Security 6
Nest: Middleware Bypass on Fastify via Trailing Slash
Nest Affected by DoS via Recursive handleData in JsonSocket (TCP Transport)
@nestjs/core Improperly Neutralizes Special Elements in Output Used by a Downstream Component ('Injection')
Nest Fastify HEAD Request Middleware Bypass
Nest has a Fastify URL Encoding Middleware Bypass
Nest has a Fastify URL Encoding Middleware Bypass (TOCTOU)