skills/antfu/skills/vue-testing-best-practices

vue-testing-best-practices

Installation
Summary

Comprehensive Vue.js testing guidance covering unit, component, and end-to-end testing strategies.

  • Addresses 11 common testing challenges including async handling, composable testing, Pinia store setup, Suspense components, and Teleport queries
  • Recommends Vitest for unit and component testing infrastructure, with Playwright as the preferred E2E framework
  • Covers black-box component testing patterns to prevent brittle tests during refactoring, async/await patterns to eliminate race conditions, and snapshot test anti-patterns
  • Includes guidance on browser vs. Node.js test runners for DOM event verification and computed style testing
SKILL.md

Vue.js testing best practices, patterns, and common gotchas.

Testing

Reference

Weekly Installs
10.4K
Repository
antfu/skills
GitHub Stars
4.8K
First Seen
Today