From cd1d482aa8f07c9ecc7e61f46875d3dc728a69b1 Mon Sep 17 00:00:00 2001 From: Julien Gautier Date: Thu, 30 Apr 2026 16:44:33 +0200 Subject: [PATCH] fix(portal-shell): make 'nx test' run once by default, add watch configuration The Angular 21 unit-test builder (@angular/build:unit-test) defaults to watch mode. Without an explicit option, 'pnpm nx test portal-shell' hangs on 'Waiting for task' indefinitely - unsuitable for CI and surprising for ad-hoc invocations. Pin watch=false as the default in the target options. Add a 'watch' configuration so developers who want continuous test running can opt in with 'pnpm nx test portal-shell --configuration=watch'. portal-bff uses Jest which defaults to no-watch and needs no change. --- apps/portal-shell/project.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/portal-shell/project.json b/apps/portal-shell/project.json index dadee95..7bc01ae 100644 --- a/apps/portal-shell/project.json +++ b/apps/portal-shell/project.json @@ -64,7 +64,14 @@ }, "test": { "executor": "@angular/build:unit-test", - "options": {} + "options": { + "watch": false + }, + "configurations": { + "watch": { + "watch": true + } + } }, "serve-static": { "continuous": true,