-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
breaking: remove support for Angular <17.2.0 for Cypress Component Testing #30539
Conversation
675b156
to
47ea457
Compare
cypress Run #58203
Run Properties:
|
Project |
cypress
|
Branch Review |
breaking/remove_angular_under_17_2
|
Run status |
Passed #58203
|
Run duration | 17m 29s |
Commit |
74f853bc1e: breaking: remove support for angular 13,14,15, and 16. minimum version is now 17...
|
Committer | AtofStryker |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
4
|
Pending |
1327
|
Skipped |
0
|
Passing |
29317
|
View all changes introduced in this branch ↗︎ |
UI Coverage
46.67%
|
|
---|---|
Untested elements |
187
|
Tested elements |
168
|
Accessibility
92.55%
|
|
---|---|
Failed rules |
3 critical
8 serious
2 moderate
2 minor
|
Failed elements |
893
|
abd9411
to
a6c2708
Compare
@@ -7,29 +7,28 @@ | |||
"build": "tsc -p tsconfig.json", | |||
"build:watch": "tsc -p tsconfig.json --watch", | |||
"lint": "eslint --ext .ts,.json, .", | |||
"test": "mocha -r @packages/ts/register --reporter mocha-multi-reporters --reporter-options configFile=../../mocha-reporter-config.json src/**/*.spec.ts" | |||
"test": "vitest run --no-file-parallelism" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated cypress-schematic
to use vitest
as the mocking library is much easier to use and it can run ts files natively. I wound up not needing the mocking but still think this a good addition
}) | ||
|
||
it('should create cypress component tests alongside components', async () => { | ||
return schematicRunner.runSchematicAsync('specs-ct', { project: 'sandbox' }, appTree).pipe(take(1)).subscribe((tree: UnitTestTree) => expect(tree.files).to.contain('/projects/sandbox/app/src/app.component.cy.ts')) | ||
const tree = await schematicRunner.runSchematic('specs-ct', { project: 'sandbox' }, appTree) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this test was previously passing when it shouldn't have. I cannot mock the file system easily, so I added a projects/sandbox/src
with a .gitkeep
to make this test mock generate the cypress test correctly.
…n is now 17.2.0 breaking: cypress-schematic only supports angular 17.2.0 and up [run ci] fix updates missed [run ci]
a6c2708
to
74f853b
Compare
|
Additional details
Removes CT support for angular versions under
17.2.0
. This is needed in order to merge theangular-signals
test harness into the main test harness #29606. This also updates thecypress-schematic
to have a peer dependency on angular17.2.0
and up and updates the tests to use the latest devkit and leveragesvitest
in band instead of mocha/chaiSteps to test
How has the user experience changed?
PR Tasks
cypress-documentation
? chore: update angular documentation with supported versions from Cypress 14 cypress-documentation#5983type definitions
?