Skip to content
rstackjs avatar

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
View on GitHub

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 -y

Installs 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 12

Similar to Migrate To Rstest

More Testing & QA