Skip to content

chore(angular): update to Angular 22.2 and Vitest 5 - #1912

Merged
ShaneK merged 1 commit into
mainfrom
chore/angular-22.2
Oct 22, 2026
Merged

ShaneK merged 1 commit into
mainfrom
chore/angular-22.2

Conversation

@ShaneK

@ShaneK ShaneK commented Oct 22, 2026

Copy link
Copy Markdown
Member

Issue number: internal


What is the current behavior?

Currently, all six open Dependabot PRs fail CI. The Angular 22.2 group in #1911 breaks unit tests in the NgModule starters, the Vitest 5 bumps in #1909 and #1910 can't install until Angular is on 22.2, the security bump in #1904 moves @angular/router without the rest of the family, and the TypeScript 7 bumps in #1896 and #1898 can't install because no Angular release supports it yet.

The test break comes from the 22.2 unit test builder only compiling spec files and what they import, so the src/**/*.module.ts include in tsconfig.spec.json no longer pulls NgModules into the compile. Specs that declare a component directly end up compiling it with no Ionic elements in scope, and every ion-* tag fails with NG8001.

What is the new behavior?

Bumps the @angular/* family to 22.2.3 and Vitest to 5.0.5 in both bases, which also covers the router security bump. The NgModule specs now import the module that declares their component, the same way the list home and tabs tab specs already did. The sidemenu AppComponent spec also waits for ion-menu to load in afterEach, since @ionic/angular/lazy finishes loading it after teardown and Vitest 5 fails the run on logs from a closed environment.

Dependabot now ignores TypeScript majors, since @angular/build and @angular/compiler-cli peer on >=6.0 <6.1.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Supersedes #1911, #1910, #1909, and #1904. I'm closing #1896 and #1898 too, since TypeScript 7 has to wait for Angular.

All eight Angular starters pass lint, build, and tests locally. Without the afterEach, the sidemenu spec failed 4 of 8 runs under Vitest 5, and with it 0 of 10.

@ShaneK
ShaneK requested a review from a team as a code owner October 22, 2026 13:40
@ShaneK
ShaneK requested review from brandyscarney and removed request for a team October 22, 2026 13:40

@thetaPC thetaPC left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ShaneK
ShaneK merged commit f5f59dd into main Oct 22, 2026
30 checks passed
@ShaneK
ShaneK deleted the chore/angular-22.2 branch October 22, 2026 15:34
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