From 09e06963ed582214a71d39af3a780a94f15d563e Mon Sep 17 00:00:00 2001 From: Tim Deschryver <28659384+timdeschryver@users.noreply.github.com> Date: Wed, 30 Sep 2026 20:59:28 +0200 Subject: [PATCH 1/2] build: remove flatModule compiler options @angular/build 22.2.0 validates flatModuleOutFile in test builds, which fails with NG4001 because tsconfig.spec.json inherits the option while including all .ts files. ng-packagr sets these options itself when building the library, so they are not needed here. Co-Authored-By: Claude Opus 5.5 --- projects/testing-library/tsconfig.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/projects/testing-library/tsconfig.json b/projects/testing-library/tsconfig.json index ec26b3b9..499c0f5f 100644 --- a/projects/testing-library/tsconfig.json +++ b/projects/testing-library/tsconfig.json @@ -19,8 +19,6 @@ "angularCompilerOptions": { "strictInjectionParameters": true, "strictInputAccessModifiers": true, - "strictTemplates": true, - "flatModuleId": "AUTOGENERATED", - "flatModuleOutFile": "AUTOGENERATED" + "strictTemplates": true } } From 80a1060b039ca6f8910c890b9ef1b2f2e4bbff79 Mon Sep 17 00:00:00 2001 From: Tim Deschryver <28659384+timdeschryver@users.noreply.github.com> Date: Wed, 30 Sep 2026 21:06:56 +0200 Subject: [PATCH 2/2] build: downlevel async/await in zone-based jest example app jest-preset-angular 17.0.1 changed the esbuild target for .mjs dependencies from es2016 to es2022, so async/await in Angular packages is no longer downleveled. zone.js cannot track native async/await, which breaks the zone-based router example test. Targeting ES2015 makes jest-preset-angular downlevel them again. Co-Authored-By: Claude Opus 5.5 --- apps/example-app-jest/tsconfig.spec.json | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/example-app-jest/tsconfig.spec.json b/apps/example-app-jest/tsconfig.spec.json index f30bc5d2..904de01e 100644 --- a/apps/example-app-jest/tsconfig.spec.json +++ b/apps/example-app-jest/tsconfig.spec.json @@ -2,6 +2,7 @@ "extends": "./tsconfig.json", "compilerOptions": { "outDir": "../../dist/out-tsc", + "target": "ES2015", "module": "Node16", "moduleResolution": "node16", "isolatedModules": true,