Skip to content

test: use eager change detection in fake-async test component#32851

Merged
alan-agius4 merged 1 commit intoangular:mainfrom
alan-agius4:fix-tests
Mar 26, 2026
Merged

test: use eager change detection in fake-async test component#32851
alan-agius4 merged 1 commit intoangular:mainfrom
alan-agius4:fix-tests

Conversation

@alan-agius4
Copy link
Collaborator

The AppComponent template used within the fake-async_spec.ts files is updated to use ChangeDetectionStrategy.Eager. This ensures that change detection is triggered immediately as expected for these specific behavior tests.

The `AppComponent` template used within the `fake-async_spec.ts` files
is updated to use `ChangeDetectionStrategy.Eager`. This ensures that
change detection is triggered immediately as expected for these
specific behavior tests.
@alan-agius4 alan-agius4 requested a review from clydin March 26, 2026 14:31
@alan-agius4 alan-agius4 added target: minor This PR is targeted for the next minor release action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 26, 2026
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request modifies the app.component.ts file used in Karma builder tests for fakeAsync behavior. It adds ChangeDetectionStrategy.Eager to the component's decorator, which helps ensure consistent and predictable change detection within the test environment. I have no feedback to provide.

@alan-agius4 alan-agius4 removed the request for review from clydin March 26, 2026 15:21
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 26, 2026
@alan-agius4 alan-agius4 merged commit a712a82 into angular:main Mar 26, 2026
37 of 38 checks passed
@alan-agius4
Copy link
Collaborator Author

This PR was merged into the repository. The changes were merged into the following branches:

@alan-agius4 alan-agius4 deleted the fix-tests branch March 26, 2026 15:21
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 target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants