Run cypress e2e tests within your Vite project.
npm install vite-e2e-cypress --save-dev
Run all spec files
vite-cy-e2e
View all options
vite-cy-e2e --help
Running particular spec files
vite-cy-e2e --headless -s '**/*.spec.js'
Specify vite config file path. This example is also the default value.
vite-cy-e2e -c ./vite.config.ts
Specify vite root path. This example is also the default value.
vite-cy-e2e -r .
Run in different mode (default to production)
vite-cy-e2e -m development
Run dev server instead of build the app and run preview server. Might be helpful for local development to reflect code change immediately without restarting cypress.
vite-cy-e2e -d