Skip to content
Agentmart
Submit a tool

testing-vue-vitest

为 Vue 3 + Vitest 项目补齐可维护测试,适用于用户要求补单测、补组件测试、补页面测试、修 Vitest、测试表单/表格/权限显隐/组合式函数时使用。

Skill by 535803710

IndexedMIT★ 8
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/535803710-testing-vue-vitest

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

为 Vue 3 + Vitest 项目补齐可维护测试,适用于用户要求补单测、补组件测试、补页面测试、修 Vitest、测试表单/表格/权限显隐/组合式函数时使用。

Use cases: frontend, testing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/testing-vue-vitest

What's inside

Skill name
testing-vue-vitest
Description
为 Vue 3 + Vitest 项目补齐可维护测试,适用于用户要求补单测、补组件测试、补页面测试、修 Vitest、测试表单/表格/权限显隐/组合式函数时使用。
License
MIT
Instructions
29 lines in SKILL.md · view on GitHub

Files (3)

  • SKILL.md
  • openai.yaml · agents/
  • test-patterns.md · references/

SKILL.md (first lines)

# Testing Vue Vitest

## 目标

为 Vue 3 项目补齐有价值、低脆弱的测试。不要为了覆盖率堆测试,优先覆盖核心路径和高风险分支。

## 工作方式

1. 先阅读目标组件、组合式函数、API 封装和已有测试写法。
2. 识别测试层级:工具函数、composable、组件、页面行为。
3. 优先覆盖核心路径,再补异常、权限、空数据和回归场景。
4. mock 外部依赖,但不要 mock 被测逻辑本身。
5. 断言用户可感知结果,少断言实现细节。
6. 跑测试并修正不稳定断言。

## 推荐覆盖

- 表单校验和提交
- 搜索、重置、分页
- 空数据和接口异常
- 弹窗打开、回显、关闭
- 权限按钮显隐
- composable 的状态变化
- 关键事件 emit

## 参考

需要测试模式示例时读取 `references/test-patterns.md`。

From 535803710/ai-rd-skills, MIT.

More from 535803710/ai-rd-skills

Signals

Stars
8
Forks
1
Open issues
0
Last commit (this folder)
May 20, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from 535803710

Cite this page

testing-vue-vitest skill. Agent Mart. https://agentmart.dev/skills/535803710-testing-vue-vitest (last updated 2026-10-24)