test(deps): update angular example to version 17.3.12 #480
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
The Angular project in examples/angular-app is currently configured to use Angular
16.2.12
. This version has already transitioned out of active support and its LTS support ends in Nov 2024 (see Actively supported versions).Additionally, as listed in Angular - Version compatibility, Angular
16.x
is constrained to^16.14.0 || ^18.10.0
which causes Node.js version inconsistencies in .circleci/test-deploy.yml, where simultaneously Node.js20.6.0
and18.20.3
are configured.Compatibility
cypress/browsers:node-18.20.3-chrome-125.0.6422.141-1-ff-126.0.1-edge-125.0
image.17.4.x
is compatible with^18.13.0 || ^20.9.0
>=5.2.0 <5.5.0
Change
In examples/angular-app apply Angular Update Guide 16.0 to 17.0 to update from Angular
16.2.12
to17.3.12
Execute
cd examples/angular-app npx ng update @angular/core@17 @angular/cli@17
Verification
Local current browsers
On Ubuntu
22.04.4
LTS with Node.js18.20.3
cd examples/angular-app npm ci npx cypress run --component npx cypress run --component --browser chrome npx cypress run --component --browser edge npx cypress run --component --browser firefox
In separate terminal
npx ng test npx cypress run
Local Docker
(Only tests component tests, not E2E)
cd examples/angular-app npm ci docker run -it --rm -v .:/e2e -w /e2e cypress/browsers:node-18.20.3-chrome-125.0.6422.141-1-ff-126.0.1-edge-125.0.2535.85-1 npx cypress install npx cypress run --component npx cypress run --component --browser chrome npx cypress run --component --browser edge npx cypress run --component --browser firefox