-
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 vite 2 and 3 from @cypress/vite-dev-server
#30489
breaking: remove support for vite 2 and 3 from @cypress/vite-dev-server
#30489
Conversation
dca2184
to
c40d117
Compare
a2ee392
to
7e7a378
Compare
@cypress/vite-dev-server
cypress Run #58034
Run Properties:
|
Project |
cypress
|
Branch Review |
breaking/remove_vite_3_and_under_support
|
Run status |
Passed #58034
|
Run duration | 21m 07s |
Commit |
149f5923b5: fix failing tests in vite-dev-server by fixing source map references (expected s...
|
Committer | AtofStryker |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
5
|
Pending |
1327
|
Skipped |
0
|
Passing |
29369
|
View all changes introduced in this branch ↗︎ |
UI Coverage
46.24%
|
|
---|---|
Untested elements |
188
|
Tested elements |
166
|
Accessibility
92.55%
|
|
---|---|
Failed rules |
3 critical
8 serious
2 moderate
2 minor
|
Failed elements |
899
|
…nger supported by @cypress/vite-dev-server
…ings issue within vue)
…emoved test for allowing passing scaffolding for installing prereleases as we don't support prereleases ahead of time
…(expected since we are on 3 major versions ahead of vite) and install @cypress/vite-dev-server in correct packages [run ci]
93bffde
to
149f592
Compare
cy.startAppServer('component') | ||
|
||
cy.visitApp() | ||
cy.specsPageIsVisible() | ||
cy.contains('App.cy.jsx').click() | ||
cy.waitForSpecToFinish() | ||
cy.get('.passed > .num').should('contain', 1) | ||
// no support file means there is no mount function registered, so all tests should fail | ||
cy.get('.failed > .num').should('contain', 2) |
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.
honestly not sure why this ever passed initially, but I would argue this is the correct behavior since there is no mount function.
@@ -112,6 +112,11 @@ describe('scaffolding component testing', { | |||
cy.findByTestId('dependency-react-dom').within(() => { | |||
cy.get('[aria-label="installed"]').should('exist') | |||
}) | |||
|
|||
// now clean up the state that we mutated | |||
cy.withCtx(async (ctx) => { |
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.
not a problem in CI but when rerunning this spec locally it fails due to polluted state in the project under test's dependencies
expect(actual.bundler).to.eq('vite') | ||
}) | ||
|
||
it(`React with Vite using pre-release version`, async () => { |
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.
we support installing a pre release if we support that major version, which is kind of weird because we don't know if we will be compatible with the next major version, so we shouldn't actually support this OOTB and instead let users skip the install step to try the test harness
Additional details
Removes support for
vite
version 2 and 3 from@cypress/vite-dev-server
. This doesn't have a tremendous effect on the@cypress/vite-dev-server
package as far as actually supporting versions 2 and 3. It likely will still work, Cypress just no longer guarantees it and we will not detect the dependency when scaffolding CT. Therefore, all vite 2/3 tests are removed, or tests that are using older versions of vite/older dependencies are now updated.Steps to test
How has the user experience changed?
PR Tasks
cypress-documentation
? chore: update supported vite versions for cypress 14 cypress-documentation#5978type definitions
?