Skip to content

feat: 🎸 upgrade to Angular v20#711

Merged
NetanelBasal merged 10 commits intongneat:masterfrom
chimurai:ng20
Jul 12, 2025
Merged

feat: 🎸 upgrade to Angular v20#711
NetanelBasal merged 10 commits intongneat:masterfrom
chimurai:ng20

Conversation

@chimurai
Copy link
Copy Markdown
Contributor

@chimurai chimurai commented Jul 11, 2025

Upgrade to Angular v20

BREAKING CHANGE:
🧨 minimum version: Angular 20
🧨 removed TestBed.get support

TestBed.get is removed in v20: https://github.com/angular/angular/blob/main/CHANGELOG.md#2000-2025-05-28

TestBed.get has been removed. Use TestBed.inject instead.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Angular 19

What is the new behavior?

Angular 20

Does this PR introduce a breaking change?

[x] Yes
[ ] No

🧨 minimum version: Angular 20
🧨 removed TestBed.get support

Other information

chimurai added 4 commits July 5, 2025 19:47
npx ng update @angular/core @angular/cli @angular/cdk angular-eslint
@angular-builders/jest @analogjs/vitest-angular
@analogjs/vite-plugin-angular jest-preset-angular prettier

BREAKING CHANGE: 🧨 removed TestBed.get support
`NODE_ENV=build yarn test` throws an error:

TypeError [ERR_INVALID_STATE]: Invalid state:
Controller is already closed

bug: angular/angular-cli#30653

Update Angular to latest version with Karma fix:

npx ng update @angular/core@latest @angular/cli@latest
@angular/cdk@latest
@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

BREAKING CHANGE: 🧨 peerDependencies @angular/*: >= 20.0.0
@chimurai
Copy link
Copy Markdown
Contributor Author

chimurai commented Jul 11, 2025

it seems Karma is hanging with: NODE_ENV=build yarn test 🤔


update: hanging issue is fixed.

as of writing these jobs are still running and might need to be killed manually if they do not time out:
https://github.com/ngneat/spectator/actions/runs/16228484541?pr=711
https://github.com/ngneat/spectator/actions/runs/16228444096?pr=711

"ERROR Some of your tests did a full page reload!"
karma-runner/karma#3887 (comment)
@NetanelBasal NetanelBasal merged commit 460f5be into ngneat:master Jul 12, 2025
3 checks passed
@chimurai chimurai deleted the ng20 branch July 12, 2025 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants