hybrid-mount/meta-hybrid_mount/vue-testing-best-practices
Claude Code and agent skill by hybrid-mount/meta-hybrid_mount
Trust tier 3
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending
Checking that the SKILL.md file is still in the repository.
给 Hybrid Mount WebUI 写或修测试时用:Vitest + Vue Test Utils 的组件测试、异步与 flushPromises、composable 测试、避免只写快照,以及本仓库实际的测试门禁。
Install
npx vskill@latest install hybrid-mount/meta-hybrid_mount/vue-testing-best-practicesSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as hybrid-mount/meta-hybrid_mount/vue-testing-best-practices.
Hybrid Mount precedence (read before applying any rule)
These rules are generic Vue testing defaults. This repository's own contracts win wherever they differ.
- The runner is `pnpm test` = `vitest run && vue-tsc -b` from
webui/; types are part of the test gate, so a passing Vitest run with failingvue-tscis still red. - No Playwright, no E2E, no browser runner. The WebUI is a WebView front-end for a rooted Android device; the
testing-e2e-playwright-recommendedandtesting-browser-vs-node-runnersreferences describe an environment this repo does not have. Do not add them. - No Pinia. Any reference telling you to install or hydrate a Pinia store before mounting does not apply; the
testing-pinia-store-setupreference is kept only because it also covers test-only plugin installation, whichvue-i18ndoes need. - This is a systems repo. Most behaviour worth testing lives in Rust (
cargo test --workspace); do not grow a Vue test suite to compensate for untested Rust, and do not test thekernelsu.execbridge by mocking it into always succeeding. - Don't snapshot what a gate can assert. See
.dsh/skills/hm-verify/SKILL.mdfor the full checklist.
Vue.js testing best practices, patterns, and common gotchas.
Testing
- Setting up test infrastructure for Vue 3 projects → See testing-vitest-recommended-for-vue
- Tests keep breaking when refactoring component internals → See testing-component-blackbox-approach
- Tests fail intermittently with race conditions → See testing-async-await-flushpromises
- Composables using lifecycle hooks or inject fail to test → See testing-composables-helper-wrapper
- Getting "injection Symbol(pinia) not found" errors in tests → See testing-pinia-store-setup
- Components with async setup won't render in tests → See testing-suspense-async-components
- Snapshot tests keep passing despite broken functionality → See testing-no-snapshot-only
- Choosing end-to-end testing framework for Vue apps → See testing-e2e-playwright-recommended
- Tests need to verify computed styles or real DOM events → See testing-browser-vs-node-runners
- Testing components created with defineAsyncComponent fails → See async-component-testing
- Teleported modal content can't be found in wrapper queries → See teleport-testing-complexity
Reference
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.dsh/skills/vue-testing-best-practices/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hybrid-mount/meta-hybrid_mount/vue-testing-best-practices)