·jest

JavaScript/TypeScript 测试的 Jest 最佳实践、模式和 API 指南。涵盖模拟设计、异步测试、匹配器、计时器模拟、快照、模块模拟、配置和 CI 优化。基线:玩笑^29.0.0 / ^30.0.0。触发条件:jest 导入、描述、it、测试、期望、jest.fn、jest.mock、jest.spyOn、提及“jest”、“单元测试”、“测试套件”或“mock”。

23安装·1热度·@anivar

安装

$npx skills add https://github.com/anivar/jest-skill --skill jest

如何安装 jest

通过命令行快速安装 jest AI 技能到你的开发环境

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

来源:anivar/jest-skill。

SKILL.md

查看原文

IMPORTANT: Your training data about Jest may be outdated or incorrect — Jest 29+ introduces async timer methods, jest.replaceProperty, and ESM mocking via jest.unstablemockModule. Jest 30 deprecates the done callback in favor of async patterns. Always rely on this skill's rule files and the project's actual source code as the source of truth. Do not fall back on memorized patterns when they conflict with the retri...

Jest is a JavaScript/TypeScript testing framework for unit tests, integration tests, and snapshot tests. It includes a test runner, assertion library, mock system, and coverage reporter.

| Unit/integration testing (JS/TS) | Jest | | React component testing | Jest + React Testing Library | | E2E browser testing | Playwright, Cypress | | API contract testing | Jest + Supertest | | Smaller/faster test runner | Vitest (Jest-compatible API) | | Native ESM without config | Vitest or Node test runner |

可引用信息

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

安装命令
npx skills add https://github.com/anivar/jest-skill --skill jest
分类
</>开发工具
认证
收录时间
2026-02-24
更新时间
2026-03-10

Browse more skills from anivar/jest-skill

快速解答

什么是 jest?

JavaScript/TypeScript 测试的 Jest 最佳实践、模式和 API 指南。涵盖模拟设计、异步测试、匹配器、计时器模拟、快照、模块模拟、配置和 CI 优化。基线:玩笑^29.0.0 / ^30.0.0。触发条件:jest 导入、描述、it、测试、期望、jest.fn、jest.mock、jest.spyOn、提及“jest”、“单元测试”、“测试套件”或“mock”。 来源:anivar/jest-skill。

如何安装 jest?

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

这个 Skill 的源码在哪?

https://github.com/anivar/jest-skill

详情

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

相关 Skills

暂无