Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
rstackjs avatar

Migrate To Rstest

  • 303 installs
  • 86 repo stars
  • Updated August 4, 2026
  • rstackjs/agent-skills

Use migrate-to-rstest for development tasks

About

migrate-to-rstest: A skill for development. This provides functionality for development workflows.

  • migrate-to-rstest

Migrate To Rstest by the numbers

  • 303 all-time installs (skills.sh)
  • +15 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #1,341 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/rstackjs/agent-skills --skill migrate-to-rstest

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs303
repo stars86
Last updatedAugust 4, 2026
Repositoryrstackjs/agent-skills

What it does

Use migrate-to-rstest for development tasks

Files

SKILL.mdMarkdownGitHub ↗

Migrate to Rstest

Goal

Migrate Jest/Vitest tests and config to Rstest with minimal behavior changes. Use the current Rstest migration docs for exact mappings; this skill adds scope, dependency, and cleanup guardrails.

Workflow

1. Detect runner and scope (references/detect-test-framework.md). 2. Run dependency/version gates (references/dependency-install-gate.md). 3. Read only the needed deltas: Jest, Vitest, and/or global API replacement. 4. Migrate scripts/config/setup before tests; prefer adapters or Rsbuild/Rspack config fixes before editing test bodies. 5. Validate discovery/types/run, fixing failures in this order: dependency skew, config/resolver, setup/env/coverage, mocks/timers/snapshots, test bodies. 6. After the scope is green, remove only scope-local legacy files and devDeps no remaining scope uses. 7. Summarize changes, kept legacy files, unsupported fields, and TODOs.

Guardrails

  • Keep the smallest viable scope; do not broaden a monorepo migration or bulk-rewrite tests when config/setup fixes are plausible.
  • Do not change production behavior, assertions, test names, scenarios, or coverage thresholds to make migration pass.
  • No jest/vi shims or aliases; rewrite call sites to Rstest APIs (references/global-api-migration.md).
  • Do not silently drop unknown config fields; verify or report them as unsupported.

High-risk Rstest deltas

  • rstest / rstest run is single-run; watch mode is rstest --watch or rstest watch.
  • globals defaults to false; if globals remain, set globals: true and add @rstest/core/globals types.
  • Rstest runs on Rsbuild/Rspack. Use references/dependency-install-gate.md for latest-only APIs, coverage providers, adapters, plugins, and toolchain-version fallbacks.

Escalate before large edits

If the next fix requires many test edits or production source changes, stop and report: why smaller fixes failed, options, risks, and the recommended path.

Related skills

Backend & APIsbackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.