Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/baldir-fr/starter-vue3-vuetify3-vite-cypress-component-e2e
Starter & showcase for cohabitation of VueJS 3, Vuetify 3, Vite, Cypress as E2E runner (visit pages) and as Component runner (mount components).
https://github.com/baldir-fr/starter-vue3-vuetify3-vite-cypress-component-e2e
cypress cypress-component-testing cypress-e2e-testing vite vue vuejs3 vuetify3
Last synced: 11 days ago
JSON representation
Starter & showcase for cohabitation of VueJS 3, Vuetify 3, Vite, Cypress as E2E runner (visit pages) and as Component runner (mount components).
- Host: GitHub
- URL: https://github.com/baldir-fr/starter-vue3-vuetify3-vite-cypress-component-e2e
- Owner: baldir-fr
- Created: 2022-08-03T19:08:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-06T15:40:30.000Z (over 2 years ago)
- Last Synced: 2023-03-11T14:02:33.467Z (almost 2 years ago)
- Topics: cypress, cypress-component-testing, cypress-e2e-testing, vite, vue, vuejs3, vuetify3
- Language: JavaScript
- Homepage:
- Size: 2.49 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# starter-vue3-vuetify3-vite-cypress-component-e2e
Starter & showcase for cohabitation of VueJS 3, Vuetify 3, Vite, Cypress as E2E runner (visit pages) and as Component runner (mount components).In the [Making-of](making-of.md), you will see hom to reproduce the full setup from scratch.
It might be useful if some dependencies are to be updated or as a sample repository to reproduce an issue.**Credits**
- https://github.com/elevatebart/cy-ct-vuetify
- https://css-tricks.com/testing-vue-components-with-cypress/## Recommended IDE Setup
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
## Type Support for `.vue` Imports in TS
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
1. Disable the built-in TypeScript Extension
1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette
2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.## Customize configuration
See [Vite Configuration Reference](https://vitejs.dev/config/).
## Project Setup
```sh
npm install
```### Compile and Hot-Reload for Development
```sh
npm run dev
```### Type-Check, Compile and Minify for Production
```sh
npm run build
```### Lint with [ESLint](https://eslint.org/)
```sh
npm run lint
```### Run component tests
```sh
npm run test:component
```### Run end 2 end tests
```sh
npm run test:e2e
```