vitest
✓Vitest 测试框架模式,用于测试设置、异步测试、vi.* 模拟、快照和测试性能(以前称为 test-vitest)。在编写或调试 Vitest 测试时应该使用此技能。此技能不涵盖 TDD 方法(使用 test-tdd 技能)、使用 MSW 进行 API 模拟(使用 test-msw 技能)或 Jest 特定的 API。
SKILL.md
Comprehensive performance optimization and best practices guide for Vitest testing framework. Contains 44 rules across 8 categories, prioritized by impact to guide test writing, refactoring, and code review.
| 1 | Async Patterns | CRITICAL | async- | | 2 | Test Setup & Isolation | CRITICAL | setup- | | 3 | Mocking Patterns | HIGH | mock- | | 4 | Performance | HIGH | perf- | | 5 | Snapshot Testing | MEDIUM | snap- | | 6 | Environment | MEDIUM | env- | | 7 | Assertions | LOW-MEDIUM | assert- | | 8 | Test Organization | LOW | org- |
Read individual reference files for detailed explanations and code examples:
Vitest 测试框架模式,用于测试设置、异步测试、vi.* 模拟、快照和测试性能(以前称为 test-vitest)。在编写或调试 Vitest 测试时应该使用此技能。此技能不涵盖 TDD 方法(使用 test-tdd 技能)、使用 MSW 进行 API 模拟(使用 test-msw 技能)或 Jest 特定的 API。 来源:thongdn-it/react-agent-skills。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/thongdn-it/react-agent-skills --skill vitest- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 vitest?
Vitest 测试框架模式,用于测试设置、异步测试、vi.* 模拟、快照和测试性能(以前称为 test-vitest)。在编写或调试 Vitest 测试时应该使用此技能。此技能不涵盖 TDD 方法(使用 test-tdd 技能)、使用 MSW 进行 API 模拟(使用 test-msw 技能)或 Jest 特定的 API。 来源:thongdn-it/react-agent-skills。
如何安装 vitest?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/thongdn-it/react-agent-skills --skill vitest 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/thongdn-it/react-agent-skills
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-01