What problem does it solve?
This Skill solves common Vue.js testing pain points including flaky async tests, Pinia injection errors, teleport content query failures, brittle snapshot tests that break during refactoring, and incorrect async component testing.
Core Features & Use Cases
- Vitest & Vue Test Utils Configuration: Recommended setup for Vue 3 projects, including environment configuration and test utility usage.
- Common Testing Gotchas Resolved: Solutions for async component rendering issues, Pinia store testing setup, teleport content query limitations, and Suspense wrapper requirements for async setup components.
- Testing Best Practices: Blackbox component testing, proper async DOM update handling with flushPromises and nextTick, avoiding snapshot-only tests, and selecting the right test runner for component vs E2E testing.
- Use Case: A Vue 3 developer can use this Skill to fix intermittent test failures, correctly test components using Pinia stores or async setup, and implement reliable end-to-end tests with Playwright.
Quick Start
Use this skill to resolve flaky Vue 3 test failures by applying the recommended async update handling and component testing patterns to your existing test suite.