什麼是 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