-
Notifications
You must be signed in to change notification settings - Fork 3.4k
feat: add support for Angular 21 #33004
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
Open
AtofStryker
wants to merge
6
commits into
develop
Choose a base branch
from
feat/support_angular_21
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+7,269
−106
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
ea970e7 to
0f3772b
Compare
0f3772b to
d8271ce
Compare
d8271ce to
050dc8a
Compare
050dc8a to
da19b3f
Compare
da19b3f to
0d85a78
Compare
38907b6 to
8d18b26
Compare
system-tests/project-fixtures/angular/src/app/components/counter.component.ts
Show resolved
Hide resolved
9 tasks
…recommended approach since then
5d5b79a to
cc8305a
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Additional details
Adds support for Angular 21 within Cypress Component testing. Right now the Angular 21 projects needs
zone.jsas adevDependencyascypress/angularcurrently only supports zone.js. I have a follow up PR #33025 that adds a zoneless mount handler and defaults the scaffolding tocypress/angular-zonelessfor Angular 21 applicationsAs Angular 21's change detection is a bit different from the legacy implementations, I refactored some of the angular fixtures to use signals instead of observables as signals are fully supported as of angular 18+
Steps to test
use the prepublished binaries to make sure scaffolding works on a new angular 21 project
How has the user experience changed?
Users will now be able to use Angular 21 without Cypress scaffolding warnings. NOTE: this currently still requires the zone.js devDependency until the zoneless mount handler is merged down. The intent is for both of these two be shipped at the same time but the work is considered separate.
PR Tasks
cypress-documentation? chore: add angular 21 and zoneless documentation cypress-documentation#6326type definitions?Note
Adds full Angular 21 support (scaffolding, dev server, tests, fixtures) and updates docs/CI, with fixtures migrated to signals and async APIs.
system-tests/projects/angular-21(config, deps, tsconfig, yarn.lock) and include v21 in test matrices (component_testing_spec.ts, webpack-dev-server e2e).@packages/scaffold-configto recognize/install Angular 21 (README.md, minVersion bumps for Angular packages, detection tests for CLI v20/21).webpack-dev-serverAngular handler tests for v20/21 configs and tsconfig generation behavior.angular-20andangular-21.signal,model) and asyncfetch; remove obsolete service; update specs to usecomponentRef.setInput, dropHttpClientModule, and use async providers.feat/support_angular_21.Written by Cursor Bugbot for commit cc8305a. This will update automatically on new commits. Configure here.