Closed
Description
🐞 Bug report
Command (mark with an x
)
- new
- build
- serve
- test
- e2e
- generate
- add
- update
- lint
- extract-i18n
- run
- config
- help
- version
- doc
Is this a regression?
Yes, globally installing Angular CLI 13 worked with both Angular 13 and Angular 12 projects when running ng test --watch=false
.
Description
Installing Angular CLI 14 globally and running ng test --watch=false
on an Angular 13 or Angular 12 application results in the process never terminating. This causes CI builds to hang indefinitely on any step that runs Angular unit tests using this command.
🔬 Minimal Reproduction
- Run
npm i @angular/cli@13 -g
to Install Angular CLI 13. - Run
ng new
to create a new Angular application. I chose to add Angular routing and selected SCSS for the stylesheet format. Selecting SCSS seems to be required to reproduce the issue, but adding routing does not. - Run
ng test --watch=false
and observe the tests running, then the process terminating after completion. - Run
npm i @angular/cli@14 -g
to install Angular CLI 14. - Run
ng test --watch=false
. The messageYour global Angular CLI version (14.0.0) is greater than your local version (13.3.7). The local Angular CLI version is used.
will be displayed. Observe the tests running, then the process continuing to run even after the tests complete.
🔥 Exception or Error
N/A
🌍 Your Environment
macOS 12.4
node 14.17.6
npm 6.14.15
Global ng version
Angular CLI: 14.0.0
Node: 14.17.6
Package Manager: npm 6.14.15
OS: darwin x64
Angular:
...
Package Version
------------------------------------------------------
@angular-devkit/architect 0.1400.0 (cli-only)
@angular-devkit/core 14.0.0 (cli-only)
@angular-devkit/schematics 14.0.0 (cli-only)
@schematics/angular 14.0.0 (cli-only)
ng version
inside application directory
Angular CLI: 13.3.7
Node: 14.17.6
Package Manager: npm 6.14.15
OS: darwin x64
Angular: 13.3.11
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1303.7
@angular-devkit/build-angular 13.3.7
@angular-devkit/core 13.3.7
@angular-devkit/schematics 13.3.7
@angular/cli 13.3.7
@schematics/angular 13.3.7
rxjs 7.5.5
typescript 4.6.4
Anything else relevant?
I was not able to reproduce the issue if I selected "CSS" instead of "SCSS" when creating the SPA.