/rstack:migrate-to-rstestfrom rstack
Migrates Jest, Vitest, or Playwright Test suites to Rstest while preserving test discovery, assertions, mocks, snapshots, and coverage. Follows a structured workflow for minimal behavior change.
Ships in rstack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
references/detect-test-framework.md.references/dependency-install-gate.md before choosing Rstest, coverage, adapter, or plugin APIs.references/discovery-parity.md throughout the migration.references/jest-migration-deltas.md; for Vitest read references/vitest-migration-deltas.md; for global APIs also read references/global-api-migration.md; for a detected Playwright Test runner read references/playwright-migration-deltas.md. Do not load the Playwright path for a browser-only request whose runner is not Playwright Test. Migrate scripts, config, and setup before editing test bodies; prefer adapter or Rsbuild/Rspack fixes over broad test rewrites.[MODULE_TYPELESS_PACKAGE_JSON], use references/config-module-type.md. Do not suppress the warning or change the whole package module type without an audit.unchecked validation in references/jest-migration-deltas.md.rstest-debugging when available. Otherwise use references/performance-diagnosis.md. If repeated worker startup or per-file dependency compilation dominates, use the pool comparison in that workflow to evaluate vmForks or vmThreads.jest/vi shims or aliases; rewrite call sites with references/global-api-migration.md.rstest / rstest run is single-run; watch mode is rstest --watch or rstest watch.globals defaults to false; preserving global APIs requires globals: true and @rstest/core/globals types.rs.mock() is runtime replacement and does not by itself prune the real module graph.references/config-module-type.md (opens in a new tab)references/dependency-bundling-performance.md (opens in a new tab)references/dependency-install-gate.md (opens in a new tab)references/detect-test-framework.md (opens in a new tab)references/discovery-parity.md (opens in a new tab)references/global-api-migration.md (opens in a new tab)references/jest-migration-deltas.md (opens in a new tab)references/mocked-module-build-graph.md (opens in a new tab)references/performance-diagnosis.md (opens in a new tab)references/playwright-migration-deltas.md (opens in a new tab)references/vitest-migration-deltas.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub rstackjs/agent-skills --plugin rstack23 skills in this plugin
/migrate-to-rsbuildMigrate webpack, Vite, create-react-app (CRA/CRACO), or Vue CLI projects to Rsbuild./migrate-to-rslibMigrate tsc or tsup library projects to Rslib./migrate-to-rslintMigrate ESLint flat config or Oxlint to Rslint, preserving rule options, file scopes, and plugins while updating lint scripts, editor settings, and inline directives./rsbuild-best-practicesConfigure, review, or troubleshoot Rsbuild applications, including build/dev commands, assets, type checking, and bundle optimization.Other plugins' skills for the same job