vitest
仓库创建 2026年1月28日最近提交 1 个月前SkillHot 收录 20 天前
▸ 精选理由
对 Vue/TS 项目测试友好,运行速度快
这个 Skill 做什么
基于 Vite 的快速测试框架,提供与 Jest 兼容的 API 与 TypeScript 支持。
基于 Vite 的快速测试框架,提供与 Jest 兼容的 API 和原生 TypeScript/ESM 支持。写单元测试、做 mock、配置 coverage 或进行测试筛选和 fixture 时用它能显著提速。特点是借用 Vite 的转译与热更新机制,让测试反馈像开发时一样快。
▸ 展开 SKILL.md 英文原文
Vitest fast unit testing framework powered by Vite with Jest-compatible API. Use when writing tests, mocking, configuring coverage, or working with test filtering and fixtures.
5.7k
Stars
314
Forks
19
仓库内 Skill
+173
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/antfu/skills/main/skills/vitest/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/antfu/skills/main/skills/vitest/SKILL.md"SKILL.MD 节选查看完整文件 ↗
Vitest is a next-generation testing framework powered by Vite. It provides a Jest-compatible API with native ESM, TypeScript, and JSX support out of the box. Vitest shares the same config, transformers, resolvers, and plugins with your Vite app. **Key Features:** - Vite-native: Uses Vite's transformation pipeline for fast HMR-like test updates - Jest-compatible: Drop-in replacement for most Jest test suites - Smart watch mode: Only reruns affected tests based on module graph - Native ESM, TypeScript, JSX support without configuration - Multi-threaded workers for parallel test execution - Built-in coverage via V8 or Istanbul - Snapshot testing, mocking, and spy utilities > The skill is base
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有