Vue Testing Best Practices vue-testing-best-practices
Use for Vue.js testing. Covers Vitest, Vue Test Utils, component testing, mocking, testing patterns, and Playwright for E2E testing.
Works in Claude, ChatGPT, Codex and more
- Our test
- —
- not tested yet
- GitHub stars
- 52k
- moeru-ai/airi
- Added by
- 0
- members
- Updated
- Dec 6
- commit f28d10e
- Content
- 14 files
- no scripts · 63 KB
- License
- MIT
- free to use
What our test found
Not tested yet. Our model tries every skill on a realistic request and scores the result, the most popular skills first. Until then, the safety checks on the right still apply.
name: vue-testing-best-practices version: 1.0.0 license: MIT author: github.com/vuejs-ai description: Use for Vue.js testing. Covers Vitest, Vue Test Utils, component testing, mocking, testing patterns, and Playwright for E2E testing.
Vue.js testing best practices, patterns, and common gotchas.
Testing
- Setting up test infrastructure for Vue 3 projects → See
- Tests keep breaking when refactoring component internals → See
- Tests fail intermittently with race conditions → See
- Composables using lifecycle hooks or inject fail to test → See
- Getting "injection Symbol(pinia) not found" errors in tests → See
- Components with async setup won't render in tests → See
- Snapshot tests keep passing despite broken functionality → See
- Choosing end-to-end testing framework for Vue apps → See
- Tests need to verify computed styles or real DOM events → See
- Testing components created with defineAsyncComponent fails → See
- Teleported modal content can't be found in wrapper queries → See