·vitest
</>

vitest

antfu/skills

由 Vite 提供支持的超快单元测试框架

4.7K安装·187热度·@antfu

安装

$npx skills add https://github.com/antfu/skills --skill vitest

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.

| Configuration | Vitest and Vite config integration, defineConfig usage | core-config | | CLI | Command line interface, commands and options | core-cli | | Test API | test/it function, modifiers like skip, only, concurrent | core-test-api | | Describe API | describe/suite for grouping tests and nested suites | core-describe |

| Expect API | Assertions with toBe, toEqual, matchers and asymmetric matchers | core-expect | | Hooks | beforeEach, afterEach, beforeAll, afterAll, aroundEach | core-hooks |

由 Vite 提供支持的超快单元测试框架 来源:antfu/skills。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/antfu/skills --skill vitest
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 vitest?

由 Vite 提供支持的超快单元测试框架 来源:antfu/skills。

如何安装 vitest?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/antfu/skills --skill vitest 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/antfu/skills

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-02-01