Vue Testing Best Practices
Curated Vue testing guidance covering Vitest, Vue Test Utils, Pinia, async components, and Playwright E2E setup.
- CCM score
- 42 of 100
- skills.sh installs
- 2.1K
- GitHub stars
- 3.4K
- last updated
- Jul 14, 2026
Own this skill? Claim it
What it does
- Covers Vue 3 test setup with Vitest, Vue Test Utils, component black-box testing, mocking, and async flushing patterns
- Maps common failures to fixes, including missing Pinia injections, Suspense and async components, Teleport content, and composable testing
- Warns against snapshot-only assertions and favors choosing between Node and browser runners for computed styles and DOM events
- Designed for Vue developers debugging flaky or failing component tests and selecting an end-to-end framework
Install
$ npx -y skills add vuejs-ai/skills --skill vue-testing-best-practices -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Details
- Repository
- github.com/vuejs-ai/skills
- Categories
- Testing & QA, Frontend & UI Code
- First seen
- May 16, 2026
More from vuejs-ai/skills
All 8Similar to Vue Testing Best Practices
More Testing & QAvueuse-best-practiceshyf0/vue-skills341 installsBest-practices reference for VueUse composables that covers common gotchas, SSR debugging, and type inference fixes.
unit-test-vue-piniagithub/awesome-copilot1.8K installsWrite and review Vue 3 and Pinia unit tests with Vitest and createTestingPinia, focused on black-box assertions.
playwright-best-practicescurrents-dev/playwright-best-practices-skill111.2K installsComprehensive guidance for writing, debugging, and maintaining Playwright tests across E2E, component, API, visual, accessibility, security, Electron, and exten
frontend-testing-best-practicessergiodxa/agent-skills2.3K installsTesting guidelines that favor E2E tests over unit tests, limit mocking, and check behavior over implementation.
react-testingaffaan-m/ecc8.5K installsBehavior-focused React component, hook, and page tests with RTL, MSW mocking, and axe accessibility checks.