vue-testing-best-practices - Vue.js Testing Best Practices and Patterns
Provides Vue.js testing guidance covering Vitest, Vue Test Utils, component testing, mocking, and Playwright for E2E testing.
Tags
Updated: 2026-09-11Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Setup Vue 3 test infrastructure
- Apply component blackbox testing
- Resolve async testing race conditions
- Test Vue composables
- Configure Pinia store testing
- Test async and Suspense components
- Test Teleport components
- Configure Playwright E2E testing
Inputs
- Vue 3 component code
- Vue composable functions
- Testing specifications
Outputs
- Vue test code and setup
- Testing solutions and recommendations
Requirements
- Vue 3
- Vitest
- Vue Test Utils
- Playwright
