antfu-collective / vitesse

🏕 Opinionated Vite + Vue Starter Template
https://vitesse.netlify.app/
MIT License
8.8k stars 932 forks source link

feat: use cypress-vite for running e2e tests #467

Closed mammadataei closed 1 year ago

mammadataei commented 1 year ago

Description

This PR installs cypress-vite for running end-to-end test. I think since the whole development environment is based on Vite; it also makes sense to use a Vite preprocessor for running Cypress end-to-end tests.

antfu commented 1 year ago

I am not very sure if I understand the context here. How does it help with the current tests? I consider Cypress to be testing the app via browser without the need to know how the app is hosted.

mammadataei commented 1 year ago

@antfu What's wrong with compiling and running e2e tests using Vite instead of Webpack, in a project that is based on VIte? It means less setup and configuration, and you can also use Vite features (e.g. .env variables, import.meta, etc.) and plugins in your tests.

JessicaSachs commented 1 year ago

This is cool. Nice to see 😄