Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JessicaSachs/vite-component-test-starter
⚡️ Vite + Vue Test Utils starter 👩🏻🔬
https://github.com/JessicaSachs/vite-component-test-starter
vite vite-vue
Last synced: 3 months ago
JSON representation
⚡️ Vite + Vue Test Utils starter 👩🏻🔬
- Host: GitHub
- URL: https://github.com/JessicaSachs/vite-component-test-starter
- Owner: JessicaSachs
- Created: 2020-05-07T06:22:05.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T17:55:32.000Z (almost 2 years ago)
- Last Synced: 2024-05-01T14:24:14.376Z (8 months ago)
- Topics: vite, vite-vue
- Language: JavaScript
- Size: 300 KB
- Stars: 69
- Watchers: 8
- Forks: 8
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vite Component Test Starter
⚠️ *EXPERIMENTAL* Starter for [Vue Test Utils](https://github.com/vuejs/vue-test-utils-next) with [Vite](https://github.com/vuejs/vite)
> @vue/test-utils integration with Vue Components served by Vite
## Features
1. Component Driven Development Workflow
2. Running individual specs one-at-a-time with `/tests?spec=HelloWorld.spec.js,App.spec.js`
3. Full customization of runner and plugins provided by [aria-vue](https://github.com/aelbore/aria-vue)## TODO
- [x] Headless mode
- [x] In-browser Reporter
- [x] queueing multiple specs
- [ ] Re-run specs on source or spec file update## Installation
1. Clone this repository
2. `npm install`
3. `npm run headless` to run your test in headless
4. `npm run tdd` to run in tdd mode
5. `npm run tdd:vite` to run in tdd mode using vite## Benefits
1. Zero configuration. Vite is zero config. Your tests can be, too.
1. Convenience. By sharing transform middleware with Vite, you do not need to maintain two sources of truth for your code transforms (e.g. `jest.config.js` _and_ a `webpack.config.js`)
1. Speed. Bundling all of your specs is slower than transforming **by resource request** with Vite.