Skip to content

Commit d7b2207

Browse files
committed
build: test scripts explicitly target projects
ng test without a project argument only executed a small subset in Angular 21 (24 of 327 ngx-translate tests), so the pre-commit hook and CI were only running a fraction of the suite. Explicitly target ngx-translate and http-loader, matching the build-all pattern. test-ci now runs 327 + 24 = 351 tests.
1 parent 0bff987 commit d7b2207

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"build": "ng build",
88
"build-all": "ng build ngx-translate && ng build http-loader",
99
"watch": "ng build --watch --configuration development",
10-
"test": "ng test --code-coverage",
11-
"test-ci": "ng test --watch=false --browsers=ChromeHeadless",
10+
"test": "ng test ngx-translate --code-coverage",
11+
"test-ci": "ng test ngx-translate --watch=false --browsers=ChromeHeadless && ng test http-loader --watch=false --browsers=ChromeHeadless",
1212
"coverage": "ng test ngx-translate --code-coverage --watch=false --browsers=ChromeHeadless",
1313
"lint": "ng lint",
1414
"format": "prettier --write .",

0 commit comments

Comments
 (0)