重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
migrate-to-rstest by rstackjs/agent-skills
npx skills add https://github.com/rstackjs/agent-skills --skill migrate-to-rstest将以 Jest 或 Vitest 为基础的测试及其配置迁移到 Rstest,并尽可能减少行为变更。
references/detect-test-framework.md).md 格式的 URL;Rstest 页面提供了对 AI 更友好的 Markdown 变体。references/dependency-install-gate.md)广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
references/jest-migration-deltas.mdreferences/vitest-migration-deltas.mdreferences/global-api-migration.mdreferences/rstest-compat-pitfalls.md使用 references/detect-test-framework.md。如果同时存在 Jest 和 Vitest,请一次迁移一个作用域(包/套件),在 Rstest 上每个作用域测试通过之前保持混合模式。
在大规模编辑之前,请验证依赖项可以安装且测试运行器二进制文件可用。详细的检查项、阻塞模式输出格式和 ni 策略位于:references/dependency-install-gate.md
package.json, rstest.config.ts, include/exclude, test environment)。@testing-library/jest-dom/vitest 迁移到 Rstest 中基于匹配器的设置)。{ mock: true }, importActual)。import.meta.url 与 __dirname)。如果修复需要满足以下任一条件:
请停止并提供:
rstest < 0.9.3。references/rstest-compat-pitfalls.md每周安装量
67
代码仓库
GitHub 星标数
42
首次出现
2026年2月26日
安全审计
安装于
codex66
cursor63
kimi-cli61
gemini-cli61
amp61
cline61
Migrate Jest- or Vitest-based tests and configuration to Rstest with minimal behavior changes.
references/detect-test-framework.md).md URL form when available; Rstest pages provide Markdown variants that are more AI-friendly.references/dependency-install-gate.md)references/jest-migration-deltas.mdreferences/vitest-migration-deltas.mdreferences/global-api-migration.mdreferences/rstest-compat-pitfalls.mdUse references/detect-test-framework.md. If both Jest and Vitest are present, migrate one scope at a time (package/suite), keeping mixed mode until each scope is green on Rstest.
Before large-scale edits, verify dependencies can be installed and test runner binaries are available. Detailed checks, blocked-mode output format, and ni policy are in: references/dependency-install-gate.md
package.json, rstest.config.ts, include/exclude, test environment).@testing-library/jest-dom/vitest to matcher-based setup in Rstest).{ mock: true }, importActual).import.meta.url vs __dirname) in test/setup helpers.If a fix would require either:
stop and provide:
rstest < 0.9.3.references/rstest-compat-pitfalls.mdWeekly Installs
67
Repository
GitHub Stars
42
First Seen
Feb 26, 2026
Security Audits
Gen Agent Trust HubWarnSocketPassSnykWarn
Installed on
codex66
cursor63
kimi-cli61
gemini-cli61
amp61
cline61
Skills CLI 使用指南:AI Agent 技能包管理器安装与管理教程
50,200 周安装