Skip to content
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 @vue/cli-service from Cypress Component Testing #30585

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

AtofStryker
Copy link
Contributor

@AtofStryker AtofStryker commented Nov 8, 2024

Additional details

Vue CLI service is no longer maintained. Because of this, we are removing Vue CLI support from Cypress Component Testing. Users who are using vue-cli as a framework option will need to move to using a bundler such as vite or webpack. This is covered in the migration guide in cypress-io/cypress-documentation#5989. When starting Cypress 14, users using vue-cli will experience an error like this:

Screenshot 2024-11-08 at 1 58 28 PM

Once a user migrates to either webpack or vite and changes their config from

const { defineConfig } = require('cypress')

module.exports = defineConfig({
  component: {
    devServer: {
      framework: 'vue-cli',
      bundler: 'webpack',
    },
  },
})

to looking something like this:

const { defineConfig } = require('cypress')

module.exports = defineConfig({
  component: {
    devServer: {
      framework: 'vue',
      bundler: 'vite', // or 'webpack'
    },
  },
})

the project will run successfully once again.

Steps to test

Vue CLI tests have been removed, but vue/webpack tests have been added to help fill in the gap of vue + webpack testing

How has the user experience changed?

PR Tasks

@AtofStryker AtofStryker self-assigned this Nov 8, 2024
@AtofStryker AtofStryker force-pushed the breaking/remove_vue_cli_service branch 2 times, most recently from a6c19de to 6abd1cf Compare November 8, 2024 01:38
Copy link

cypress bot commented Nov 8, 2024

cypress    Run #58287

Run Properties:  status check passed Passed #58287  •  git commit 90b43c95b9: breaking: remove support for @vue/cli-serivce from Cypress Component Testing [ru...
Project cypress
Branch Review breaking/remove_vue_cli_service
Run status status check passed Passed #58287
Run duration 16m 48s
Commit git commit 90b43c95b9: breaking: remove support for @vue/cli-serivce from Cypress Component Testing [ru...
Committer AtofStryker
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 28
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 765
View all changes introduced in this branch ↗︎
UI Coverage  67.07%
  Untested elements 25  
  Tested elements 55  
Accessibility  96.23%
  Failed rules  0 critical   4 serious   1 moderate   0 minor
  Failed elements 199  

@AtofStryker AtofStryker force-pushed the breaking/remove_vue_cli_service branch from 6abd1cf to a2778de Compare November 8, 2024 02:48
@AtofStryker AtofStryker force-pushed the breaking/remove_vue_cli_service branch from a2778de to 90b43c9 Compare November 8, 2024 13:40
@AtofStryker AtofStryker linked an issue Nov 8, 2024 that may be closed by this pull request
@AtofStryker AtofStryker marked this pull request as ready for review November 8, 2024 19:34
@AtofStryker AtofStryker merged commit c695f5f into release/14.0.0 Nov 12, 2024
127 of 129 checks passed
@AtofStryker AtofStryker deleted the breaking/remove_vue_cli_service branch November 12, 2024 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remove support for @vue/cli-service
2 participants