什么是 migrate-to-rstest?
将 Jest 或 Vitest 测试套件和配置迁移到 Rstest。当要求从 Jest/Vitest 迁移到 Rstest、用“@rstest/core”替换框架 API、将测试配置转换为“rstest.config.ts”或更新 Rstest 等效项的测试脚本和设置文件时使用。 来源:rstackjs/agent-skills。
将 Jest 或 Vitest 测试套件和配置迁移到 Rstest。当要求从 Jest/Vitest 迁移到 Rstest、用“@rstest/core”替换框架 API、将测试配置转换为“rstest.config.ts”或更新 Rstest 等效项的测试脚本和设置文件时使用。
通过命令行快速安装 migrate-to-rstest AI 技能到你的开发环境
来源:rstackjs/agent-skills。
Migrate Jest- or Vitest-based tests and configuration to Rstest with minimal behavior changes.
Use 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
将 Jest 或 Vitest 测试套件和配置迁移到 Rstest。当要求从 Jest/Vitest 迁移到 Rstest、用“@rstest/core”替换框架 API、将测试配置转换为“rstest.config.ts”或更新 Rstest 等效项的测试脚本和设置文件时使用。 来源:rstackjs/agent-skills。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/rstackjs/agent-skills --skill migrate-to-rstest将 Jest 或 Vitest 测试套件和配置迁移到 Rstest。当要求从 Jest/Vitest 迁移到 Rstest、用“@rstest/core”替换框架 API、将测试配置转换为“rstest.config.ts”或更新 Rstest 等效项的测试脚本和设置文件时使用。 来源:rstackjs/agent-skills。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/rstackjs/agent-skills --skill migrate-to-rstest 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/rstackjs/agent-skills