majiayu000/claude-skill-registry-data/vue3-testing
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Tainted
Author "majiayu000" has blocked skill(s)
Vue 3 测试体系:Vitest + Vue Test Utils 单测,Playwright E2E;关注行为而非实现。
Install
npx vskill@latest install majiayu000/claude-skill-registry-data/vue3-testingSKILL.md
Vue 3 测试
此 skill 用于建立前端的“快测 + 回归保障”。
何时使用此 Skill
- 为组件/composable 编写单元测试(Vitest)
- 为路由/Pinia 集成行为编写测试
- 编写端到端测试(Playwright),覆盖关键用户流
关键最佳实践
- 单测关注行为:断言用户可见结果,而非内部实现细节。
- mock 外部依赖:API 调用、路由、Pinia 插件等。
- E2E 覆盖关键路径:登录、下单、提交表单等。
与本仓库已有 skill 的配合
- 端到端自动化优先复用:
webapp-testing(Playwright 工具与调试能力)。
常见反模式
- 只测快照,不测交互与状态变化
- 测试依赖真实后端,导致不稳定
- 断言选择器依赖脆弱 CSS class(建议 data-testid 或 role)
使用示例(提示语模板)
- “为该组件补单测:覆盖 props、emits、slot 渲染,以及点击后的 UI 状态变化。”
- “为登录流程写 Playwright E2E:输入账号密码、提交、等待跳转、验证导航栏用户名展示。”
Security
- Security scanPassed, 100 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 repositoryCheckingtesting/vue3-testing/SKILL.md
Popularity
- Repository stars
- 23
- Repository forks
- 8
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
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/majiayu000/claude-skill-registry-data/vue3-testing)