Skip to content

refactor(forms): modernize value accessor integration tests - #71140

Open
MeAkib wants to merge 1 commit into
angular:mainfrom
MeAkib:forms/modernize-value-accessor-tests
Open

MeAkib wants to merge 1 commit into
angular:mainfrom
MeAkib:forms/modernize-value-accessor-tests

Conversation

@MeAkib

@MeAkib MeAkib commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Migrate the value accessor integration spec to current Angular patterns:

  • use standalone fixtures that import only the forms module they need, instead of declaring them through an initTest helper
  • replace *ngFor/*ngIf with @for/@if
  • use inject() instead of constructor injection

The reactive and template integration specs reuse two of these fixtures and are updated to create them directly.

Migrate the value accessor integration spec to current Angular patterns:
- use standalone fixtures that import only the forms module they need,
  instead of declaring them through an `initTest` helper
- replace `*ngFor`/`*ngIf` with `@for`/`@if`
- use `inject()` instead of constructor injection

The reactive and template integration specs reuse two of these fixtures and
are updated to create them directly.
@pullapprove
pullapprove Bot requested a review from JeanMeche October 2, 2026 15:37
@ngbot ngbot Bot added this to the Backlog milestone Oct 2, 2026
Comment thread packages/forms/test/template_integration_spec.ts

@JeanMeche JeanMeche left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, thanks for the cleanup.

@JeanMeche JeanMeche added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: forms target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants