-
Notifications
You must be signed in to change notification settings - Fork 11.9k
fix(@schematics/angular): use fixture.whenStable() instead of fixture detectChanges() for zoneless apps #31247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
dgp1130
merged 2 commits into
angular:main
from
mistrykaran91:fix/schematics-use-fixture-when-stable-instead-of-fixture-detect-changes
Sep 26, 2025
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
978ce42
to
6830620
Compare
atscott
requested changes
Sep 24, 2025
...nent/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.spec.ts.template
Outdated
Show resolved
Hide resolved
6830620
to
61a5988
Compare
61a5988
to
48d279a
Compare
atscott
approved these changes
Sep 25, 2025
…e` change This commit replaces `fixture.whenStable` to `fixture.detectChanges` in the Jest spec file when using zone.js
@mistrykaran91, thanks for your contribution. |
Welcome, always happy to contribute :) |
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: @angular/build
area: @angular/cli
area: @angular/ssr
area: build & ci
Related the build and CI infrastructure of the project
area: @schematics/angular
detected: feature
PR contains a feature commit
target: major
This PR is targeted for the next major release
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #31193
PR Checklist
Please check to confirm your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Currently, when we generate the app using add or generate command, for zoneless apps it uses
fixture.detectChanges()
whereas the docs says to usefixture.whenStable()
Issue Number: #31193
What is the new behavior?
If we now create zoneless apps, when generate or add command,
fixture.whenStable()
will be used.See #31193
Does this PR introduce a breaking change?
Other information