-
Notifications
You must be signed in to change notification settings - Fork 12k
Angular CLI 14: running ng test --watch=false
on Angular 13 or 12 project does not end process when complete
#23289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This will be fixed once you update your project CLI to version 14. As an interim solution you can also downgrade the global CLI to version 13 |
We did downgrade to Angular CLI 13 to get around the issue, but this is going to be problematic for developers who are maintaining both Angular 14 and Angular 13 projects or are gradually migrating multiple SPAs. |
I encountered a similar issue here running My company CI (Concourse) builds were hanging indefinitely without any output until I associated it to the v14 release on 6/2 |
…ions Angular CLI versions prior to v14 may not exit correctly if not forcibly exited via `process.exit`. When the local CLI version is less than v14, the CLI will now use `process.exit` to ensure the process exits with these older CLI versions. Fixes angular#23289
…ions Angular CLI versions prior to v14 may not exit correctly if not forcibly exited via `process.exit`. When the local CLI version is less than v14, the CLI will now use `process.exit` to ensure the process exits with these older CLI versions. Fixes #23289
…ions Angular CLI versions prior to v14 may not exit correctly if not forcibly exited via `process.exit`. When the local CLI version is less than v14, the CLI will now use `process.exit` to ensure the process exits with these older CLI versions. Fixes angular#23289
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Command (mark with an
x
)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
npm i @angular/cli@13 -g
to Install Angular CLI 13.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.ng test --watch=false
and observe the tests running, then the process terminating after completion.npm i @angular/cli@14 -g
to install Angular CLI 14.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
🌍 Your Environment
macOS 12.4
node 14.17.6
npm 6.14.15
Global
ng version
ng version
inside application directoryAnything else relevant?
I was not able to reproduce the issue if I selected "CSS" instead of "SCSS" when creating the SPA.
The text was updated successfully, but these errors were encountered: