This skill collects testing patterns and gotchas for Vue.js projects. Its SKILL.md lists eleven situations, each linked to a reference, and ends with links to the Vue testing guide, Vue Test Utils, Vitest and Playwright documentation.
The entries cover setting up Vitest, black-box component tests, race conditions fixed with flushPromises, testing composables, Pinia setup errors in tests, async setup with Suspense, snapshot-only tests, Playwright for end-to-end, browser versus Node runners, async components and Teleport content.
What You Get
- Eleven testing guides linked from one index
- Advice to test component behavior from the outside so refactors do not break tests
- Helpers for composables that need lifecycle hooks or inject
- Notes on Pinia setup, Suspense, async components and Teleport in tests
- Links to the Vue, Vue Test Utils, Vitest and Playwright docs
Common Use Cases
- Setting up Vitest in a new Vue 3 project
- Fixing flaky async component tests
- Choosing a framework for end-to-end tests of a Vue app
What Makes It Unique
It is built around the failures Vue developers hit in tests, such as missing Pinia injection or teleported content outside the wrapper. It names Vitest and Playwright as the recommended runners.
Under The Hood
The agent loads a short Markdown index and reads the reference that fits the test problem. There are no scripts. The skill lists documentation links but does not tell the agent to fetch them or run commands; the agent writes or edits test files in your project when you ask.