@vue/test-utils integration with Vue Components served by Vite
- Component Driven Development Workflow
- Running individual specs one-at-a-time with
/test/index.html?spec=HelloWorld.spec.js,App.spec.js
- Headless mode
- In-browser Reporter
- queueing multiple specs
- Re-run specs on source or spec file update
- Clone this repository
npm install
npm run dev
- open
/test/index.html
in your browser
- Zero configuration. Vite is zero config. Your tests can be, too.
- 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 awebpack.config.js
) - Speed. Bundling all of your specs is slower than transforming by resource request with Vite.