vue-testing-best-practices - Vue.js testing best practices and patterns
Covers Vitest, Vue Test Utils, component testing, mocking, testing patterns, and Playwright for Vue.js E2E testing.
Tags
Updated: 2026-09-11Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Set up Vue 3 test infrastructure
- Test components with blackbox approach
- Handle async test race conditions
- Test composables using helper wrappers
- Configure Pinia store in tests
- Test components with async setup
- Perform E2E testing with Playwright
- Test teleported modal content
Inputs
Outputs
Requirements
- Vue 3
- Vitest
- Vue Test Utils
- Playwright
- Pinia
