YUNOVA · Vue.js · Module 9: Testing and quality
Unit testing Vue components with Vitest
Unit testing Vue components with Vitest
Key points
- Vitest runs fast unit tests and works well with Vite projects.
- Vue Test Utils mount a component so you can check its output.
- Trigger events and await updates before checking the DOM.