vue-testing-best-practices
π―Skillfrom vuejs-ai/skills
Provides Vue.js testing best practices, patterns, and common gotchas covering Vitest, Vue Test Utils, component testing, mocking, async testing, Pinia store setup, and Playwright for E2E testing.
Overview
A Claude Code skill from vuejs-ai that provides Vue.js testing best practices, patterns, and common gotchas covering Vitest, Vue Test Utils, component testing, mocking, and Playwright for E2E testing. It includes organized reference guides for specific testing challenges like async components, Pinia store setup, Suspense testing, and teleport content queries.
Key Features
- Vitest Integration - Recommended testing framework setup for Vue 3 projects with proper configuration guidance
- Black-Box Component Testing - Promotes testing component behavior through public interfaces to avoid tests that break during refactoring
- Async Testing Patterns - Covers async/await with flushPromises, Suspense async components, and composables using lifecycle hooks
- Pinia Store Testing - Solves common "injection Symbol(pinia) not found" errors with proper test setup patterns
- E2E with Playwright - Includes guidance for choosing and setting up Playwright as the end-to-end testing framework for Vue applications
Who is this for?
This skill is designed for Vue.js developers who need AI-assisted guidance for writing effective tests for their Vue 3 applications. It is particularly valuable for teams experiencing intermittent test failures, tests that break during refactoring, or issues testing async components, stores, and teleported content.
Same repository
vuejs-ai/skills(18 items)
Installation
npx vibeindex add vuejs-ai/skills --skill vue-testing-best-practicesnpx skills add vuejs-ai/skills --skill vue-testing-best-practices~/.claude/skills/vue-testing-best-practices/SKILL.mdSKILL.md
More from this repository10
Agent skills for Vue 3 development
Enforces Vue 3 best practices, recommending Composition API, TypeScript, and performance optimizations for Vue.js development.
Provides interactive debugging tutorials and real-time error diagnosis for Vue.js applications, with step-by-step visual guides and performance insights.
Optimize Pinia state management in Vue.js with automated pattern detection, performance recommendations, and clean architectural guidance.
Guides Vue.js developers in implementing clean, scalable routing strategies with best practices for navigation, route guards, and dynamic routing.
Generates flexible Vue component architectures with dynamic composition, prop injection, and adaptive rendering strategies for scalable frontend development.
Validates and refactors Vue Options API components for optimal structure, lifecycle management, and performance best practices.
Covers Vue JSX best practices and differences from React JSX, including class vs className, JSX plugin configuration, and migrating React JSX code to Vue.
A Vue 3 development skill that teaches AI agents to create adaptable composables, derived from real-world issues in Vue 3 projects.
Agent skills for Vue 3 development, derived from real-world issues, providing specialized patterns and best practices for AI agents working with Vue applications.