vitest by supabase/supabase
npx skills add https://github.com/supabase/supabase --skill vitestVitest 是一个由 Vite 驱动的下一代测试框架。它提供了与 Jest 兼容的 API,并原生支持 ESM、TypeScript 和 JSX。Vitest 与您的 Vite 应用程序共享相同的配置、转换器、解析器和插件。
主要特性:
此技能基于 Vitest 3.x,生成于 2026-01-28。
| 主题 | 描述 | 参考链接 |
|---|---|---|
| 配置 | Vitest 与 Vite 配置集成,defineConfig 的使用 | core-config |
| CLI | 命令行界面,命令和选项 | core-cli |
| 测试 API | test/it 函数,以及 skip、only、concurrent 等修饰符 | core-test-api |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 描述 API | describe/suite 用于分组测试和嵌套测试套件 | core-describe |
| 期望 API | 使用 toBe、toEqual、匹配器和不对称匹配器进行断言 | core-expect |
| 钩子 | beforeEach、afterEach、beforeAll、afterAll、aroundEach | core-hooks |
| 主题 | 描述 | 参考链接 |
|---|---|---|
| 模拟 | 使用 vi 工具模拟函数、模块、计时器、日期 | features-mocking |
| 快照 | 使用 toMatchSnapshot 和内联快照进行快照测试 | features-snapshots |
| 覆盖率 | 使用 V8 或 Istanbul 提供程序进行代码覆盖率分析 | features-coverage |
| 测试上下文 | 测试夹具、context.expect、test.extend 用于自定义夹具 | features-context |
| 并发 | 并发测试、并行执行、分片 | features-concurrency |
| 过滤 | 按名称、文件模式、标签过滤测试 | features-filtering |
| 主题 | 描述 | 参考链接 |
|---|---|---|
| Vi 工具 | vi 辅助函数:mock、spyOn、fake timers、hoisted、waitFor | advanced-vi |
| 环境 | 测试环境:node、jsdom、happy-dom、自定义环境 | advanced-environments |
| 类型测试 | 使用 expectTypeOf 和 assertType 进行类型级测试 | advanced-type-testing |
| 项目 | 多项目工作区,每个项目不同的配置 | advanced-projects |
每周安装量
236
代码仓库
GitHub 星标数
99.5K
首次出现
Feb 13, 2026
安全审计
安装于
opencode229
gemini-cli228
github-copilot228
codex228
amp226
kimi-cli226
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:
The skill is based on Vitest 3.x, generated at 2026-01-28.
| Topic | Description | Reference |
|---|---|---|
| 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 |
| Topic | Description | Reference |
|---|---|---|
| Mocking | Mock functions, modules, timers, dates with vi utilities | features-mocking |
| Snapshots | Snapshot testing with toMatchSnapshot and inline snapshots | features-snapshots |
| Coverage | Code coverage with V8 or Istanbul providers | features-coverage |
| Test Context | Test fixtures, context.expect, test.extend for custom fixtures | features-context |
| Concurrency | Concurrent tests, parallel execution, sharding | features-concurrency |
| Filtering |
| Topic | Description | Reference |
|---|---|---|
| Vi Utilities | vi helper: mock, spyOn, fake timers, hoisted, waitFor | advanced-vi |
| Environments | Test environments: node, jsdom, happy-dom, custom | advanced-environments |
| Type Testing | Type-level testing with expectTypeOf and assertType | advanced-type-testing |
| Projects | Multi-project workspaces, different configs per project | advanced-projects |
Weekly Installs
236
Repository
GitHub Stars
99.5K
First Seen
Feb 13, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode229
gemini-cli228
github-copilot228
codex228
amp226
kimi-cli226
Vue.js测试最佳实践:Vue 3组件、组合式函数、Pinia与异步测试完整指南
3,700 周安装
Apify 网络爬虫和自动化平台 - 无需编码抓取亚马逊、谷歌、领英等网站数据
231 周安装
llama.cpp 中文指南:纯 C/C++ LLM 推理,CPU/非 NVIDIA 硬件优化部署
231 周安装
React Testing Library 中文指南:查询方法、用户事件与最佳实践
231 周安装
创意智能系统:结构化头脑风暴与市场研究工具,提升创新效率
232 周安装
竞争对手分析工具 - 市场定位、SWOT分析、竞争矩阵、产品战略制定指南
232 周安装
skill-name 功能详解:Claude Office Skills 社区构建的办公自动化技能
232 周安装
| Filter tests by name, file patterns, tags |
| features-filtering |