·migrate-to-rstest
""

migrate-to-rstest

将 Jest 或 Vitest 测试套件和配置迁移到 Rstest。当要求从 Jest/Vitest 迁移到 Rstest、用“@rstest/core”替换框架 API、将测试配置转换为“rstest.config.ts”或更新 Rstest 等效项的测试脚本和设置文件时使用。

34安装·0热度·@rstackjs

安装

$npx skills add https://github.com/rstackjs/agent-skills --skill migrate-to-rstest

如何安装 migrate-to-rstest

通过命令行快速安装 migrate-to-rstest AI 技能到你的开发环境

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

来源:rstackjs/agent-skills。

SKILL.md

查看原文

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
分类
""沟通写作
认证
收录时间
2026-02-28
更新时间
2026-03-11

Browse more skills from rstackjs/agent-skills

快速解答

什么是 migrate-to-rstest?

将 Jest 或 Vitest 测试套件和配置迁移到 Rstest。当要求从 Jest/Vitest 迁移到 Rstest、用“@rstest/core”替换框架 API、将测试配置转换为“rstest.config.ts”或更新 Rstest 等效项的测试脚本和设置文件时使用。 来源:rstackjs/agent-skills。

如何安装 migrate-to-rstest?

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

这个 Skill 的源码在哪?

https://github.com/rstackjs/agent-skills