
vue-testing-best-practices
Vue.js testing. Covers Vitest, Vue Test Utils, component testing, mocking
by vuejs-aiFree
Description
vue-testing-best-practices is an agent skill that gives an AI coding assistant guidance for testing Vue.js applications. It covers Vitest, Vue Test Utils for component testing, mocking, testing patterns and Playwright for end-to-end tests. It is organised as a list of common testing problems, each linked to a reference file. The problems include setting up test infrastructure for a Vue 3 project, tests that break when component internals are refactored, intermittent failures caused by race conditions, composables that use lifecycle hooks or inject and fail to test, errors such as a missing Pinia injection in tests, components with async setup that do not render, snapshot tests that pass even when the code is broken, teleported modal content that wrapper queries cannot find, and tests for components built with defineAsyncComponent.…
Highlights
- Vitest and Vue Test Utils guidance
- Playwright for end-to-end tests
- Fixes for common Vue testing problems
- Advice for black-box component tests
- Install with npx skills add
Ratings & Reviews
No ratings yet
Be the first to rate vue-testing-best-practices.
People also visit

vue-testing-best-practices
Comprehensive Vue.js testing guidance covering unit, component

unit-test-vue-pinia
Write and review unit tests for Vue 3 + TypeScript + Vitest + Pinia codebases

vue-debug-guides
Vue 3 debugging and error handling for runtime errors, warnings, async failures
vue-testing-best-practices FAQ
What does this skill cover?
Testing Vue.js apps with Vitest, Vue Test Utils, mocking, testing patterns and Playwright for end-to-end tests.
How is it organised?
As a list of common problems, such as async components or Pinia injection errors, with a linked reference file for each.
How do I install it?
Run npx skills add https://github.com/vuejs-ai/skills --skill vue-testing-best-practices.
What do the security audits say?
The skill page lists Gen Agent Trust Hub as Pass, Socket as Pass and Snyk as Pass.
What are the best vue-testing-best-practices alternatives?
Popular alternatives to vue-testing-best-practices include vue-testing-best-practices, unit-test-vue-pinia and vue-debug-guides. See all vue-testing-best-practices alternatives












