Skip to content

Angular 22 - #206

Merged
PowerKiKi merged 6 commits into
masterfrom
angular-22
Aug 11, 2026
Merged

PowerKiKi merged 6 commits into
masterfrom
angular-22

Conversation

@PowerKiKi

Copy link
Copy Markdown
Member

No description provided.

Amongst other things, this update eslint and their rules, helping us
prepare for incoming Angular 22.
@PowerKiKi
PowerKiKi merged commit a9d088a into master Aug 11, 2026
15 checks passed
@PowerKiKi
PowerKiKi requested a lite review from Copilot August 11, 2026 03:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Upgrades the workspace and published library to Angular 22, switching the demo app to zoneless change detection and migrating unit tests from Karma/Jasmine to the Angular unit-test builder with Vitest.

Changes:

  • Bump Angular (and related tooling) dependencies to 22.1.x, remove Zone.js, and enable zoneless change detection in the demo app.
  • Replace Karma/Jasmine test builder configuration with @angular/build:unit-test + runner: vitest, and update test typings/imports accordingly.
  • Migrate component state to signals and adapt template bindings where needed.

Reviewed changes

Copilot reviewed 12 out of 14 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tsconfig.spec.json Switch spec typings from Jasmine to Vitest globals.
tsconfig.json Adjust Angular compiler options for the Angular 22 upgrade.
src/app/app.config.ts Enable zoneless change detection for the demo app.
src/app/app.component.ts Migrate demo state (open/spin/direction) to signals.
src/app/app.component.spec.ts Update unit test imports to Vitest.
src/app/app.component.html Update bindings to consume signals (e.g., direction() / spin()).
projects/fab-speed-dial/tsconfig.spec.json Update library spec TS config in support of Vitest.
projects/fab-speed-dial/src/lib/fab-speed-dial.ts Update library internals to signals/linked signals and signal-driven template control flow.
projects/fab-speed-dial/src/lib/fab-speed-dial.spec.ts Update library tests for signals + Vitest spies.
projects/fab-speed-dial/package.json Bump Angular peer dependency range to ^22.1.
package.json Upgrade Angular/tooling deps; add Vitest/jsdom; remove Karma/Jasmine/Zone.js deps.
angular.json Switch test targets to @angular/build:unit-test using Vitest runner; remove Zone.js polyfills.
.github/workflows/main.yml Update CI test invocation to match the new test runner setup.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 39 to +41
<mat-slide-toggle [(ngModel)]="open" (click)="stopPropagation($event)">Open</mat-slide-toggle>
<eco-fab-speed-dial [direction]="direction" [(open)]="open">
<eco-fab-speed-dial-trigger [spin]="spin">
<eco-fab-speed-dial [direction]="direction()" [(open)]="open">
<eco-fab-speed-dial-trigger [spin]="spin()">
Comment on lines 14 to 20
const fixture = TestBed.createComponent(TestAppComponent);

const testComponent = fixture.debugElement.componentInstance;
const speedDialDebugElement = fixture.debugElement.query(By.css('eco-fab-speed-dial'));

fixture.detectChanges();
await fixture.whenStable();
expect(speedDialDebugElement.nativeElement.classList.contains('eco-up')).toBeTruthy();
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