Migrate To Rstest
Step-by-step migration workflow that moves Jest, Vitest, or Playwright Test suites to Rstest with parity checks.
- CCM score
- 60 of 100
- skills.sh installs
- 446
- GitHub stars
- 101
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers the smallest runnable scope: runner detection, dependency install gate, migration deltas, and post-migration validation
- Includes per-runner references for Jest, Vitest, global APIs, and Playwright Test, plus config module-type and performance diagnosis guides
- Requires a pre-migration test manifest and classifies every added, removed, or skipped test after migration
- Designed for teams moving a bounded test scope to Rstest without changing assertions, mocks, or coverage thresholds
Install
$ npx -y skills add rstackjs/agent-skills --skill migrate-to-rstest -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Migrate to Rstest
Goal
Migrate the smallest runnable Jest, Vitest, or Playwright Test scope with minimal behavior change. Use documentation and types that match the installed Rstest version; use latest online docs only after the capability gate confirms they apply.
Workflow
Details
- Repository
- github.com/rstackjs/agent-skills
- Categories
- Testing & QA, Frontend & UI Code
- First seen
- Jun 3, 2026
Questions
What does the migrate-to-rstest skill do?
migrate-to-rstest moves Jest, Vitest, or Playwright Test projects to Rstest while keeping test discovery, assertions, mocks, snapshots, and coverage intact. It translates config into rstest.config.ts and updates scripts, setup files, and global API calls. It also helps diagnose config-loading warnings and performance regressions caused by Rstest's Rsbuild and Rspack model.
Where does migrate-to-rstest stand among other Testing & QA skills?
migrate-to-rstest is listed in the Testing & QA category on Claude Marketplaces, alongside tdd, migrate-to-shoehorn, test-driven-development, webapp-testing and break-ui. Its distinct focus is the runner switch itself, covering config, mocks, and snapshot parity rather than writing tests.
How do I install migrate-to-rstest?
Run npx -y skills add rstackjs/agent-skills --skill migrate-to-rstest -y in your project to install migrate-to-rstest. Once installed, the agent can then follow its workflow to migrate the smallest runnable test scope and compare the test manifest before and after.
Does migrate-to-rstest change my test assertions or production code?
migrate-to-rstest is written to avoid that: it keeps the smallest viable scope and does not change assertions, test names, coverage thresholds, or production behavior to make a migration pass. It rewrites jest and vi call sites instead of adding shims, and it escalates before large test edits or any production-source change.
More from rstackjs/agent-skills
All 12Similar to Migrate To Rstest
More Testing & QAmigratealirezarezvani/claude-skills1.6K installsGuided, file-by-file migration of Cypress or Selenium test suites to Playwright, with per-batch verification.
rstest-best-practicesrstackjs/agent-skills1.6K installsRstest testing rules covering config, mocking, snapshots, coverage, CI sharding, and VM pool tuning.
migrate-mstest-v3-to-v4dotnet/skills4.8K installsMigration guide for moving MSTest v3 projects to v4, covering breaking source changes and behavioral shifts.
bun-jest-migrationsecondsky/claude-skills408 installsStep-by-step guide that moves a Jest test suite to Bun's runner, covering imports, mocks, timers, and config.
vitestpproenca/dot-skills8.4K installsCatalog of 44 Vitest best-practice rules covering async tests, setup, mocking, performance, and snapshots.
senior-qaalirezarezvani/claude-skills1.3K installsGenerates Jest, React Testing Library, MSW, and Playwright tests for React and Next.js apps.