vue-testing-best-practices - Vue.js testing best practices and patterns
Provides best practices, patterns, and troubleshooting guidance for Vue.js testing using Vitest, Vue Test Utils, and Playwright.
Tags
Updated: 2026-09-11Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Set up Vue test infrastructure
- Apply blackbox component testing
- Handle async test race conditions
- Test composables with lifecycle hooks
- Configure Pinia in component tests
- Test async and teleported components
- Run E2E tests with Playwright
Inputs
- Vue.js components
- Vue composables
- Pinia store code
- Test setup files
Outputs
- Test configurations
- Test failure diagnostics
- Testing pattern recommendations
Requirements
- Vue 3
- Vitest
- Vue Test Utils
- Playwright
