migrate-to-rstest

Solid

Migrate Jest or Vitest test suites and configs to Rstest. Use when asked to move from Jest/Vitest to Rstest, replace framework APIs with `@rstest/core`, translate test config to `rstest.config.ts`, or update test scripts and setup files for Rstest equivalents.

Testing & QA 51 stars 0 forks Updated 4 days ago MIT

Install

View on GitHub

Quality Score: 81/100

Stars 20%
57
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Migrate to Rstest ## Goal Migrate Jest- or Vitest-based tests and configuration to Rstest with minimal behavior changes. ## Migration principles (must follow) 1. **Smallest-change-first**: prefer the smallest viable change that restores test pass. 2. **Config before code**: prefer fixing in config/tooling/mocks before touching test logic. 3. **Do not change user source behavior**: avoid modifying production/business source files unless user explicitly requests it. 4. **Avoid bulk test rewrites**: do not refactor entire test suites when a local compatibility patch can solve it. 5. **Preserve test intent**: keep assertions and scenario coverage unchanged unless clearly broken by framework differences. 6. **Defer legacy runner removal**: keep Jest/Vitest dependency and legacy config during migration; remove only after Rstest tests pass. ## Workflow 1. Detect current test framework (`references/detect-test-framework.md`) 2. Open the official migration guide(s): - Jest: https://rstest.rs/guide/migration/jest.md - Vitest: https://rstest.rs/guide/migration/vitest.md - Prefer the `.md` URL form when available; Rstest pages provide Markdown variants that are more AI-friendly. 3. Dependency install gate (blocker check, see `references/dependency-install-gate.md`) 4. Apply framework-specific migration deltas: - Jest: `references/jest-migration-deltas.md` - Vitest: `references/vitest-migration-deltas.md` - Global API replacement rules: `references/global-api-mig...

Details

Author
rstackjs
Repository
rstackjs/agent-skills
Created
2 months ago
Last Updated
4 days ago
Language
JavaScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Testing & QA Listed

unit-testing

Unit testing patterns: Vitest config with v8 coverage, Testing Library behavior testing, MSW for HTTP mocking (vs jest.mock), it.each parametrized tests, spies vs mocks vs stubs, testing async code, snapshot testing guidelines. Use when writing unit and component tests.

11 Updated 1 months ago
rnavarych
Testing & QA Featured

swift-testing-expert

Expert guidance for Swift Testing: test structure, #expect/#require macros, traits and tags, parameterized tests, test plans, parallel execution, async waiting patterns, and XCTest migration. Use when writing new Swift tests, modernizing XCTest suites, debugging flaky tests, or improving test quality and maintainability in Apple-platform or Swift server projects.

334 Updated 6 days ago
AvdLee
Web & Frontend Featured

lifecyclemigrate-from-nextjs

Step-by-step migration from Next.js App Router to TanStack Start: route definition conversion, API mapping, server function conversion from Server Actions, middleware conversion, data fetching pattern changes.

14,104 Updated 5 days ago
TanStack
Testing & QA Solid

playwright-core

Battle-tested Playwright patterns for E2E, API, component, visual, accessibility, and security testing. Covers locators, assertions, fixtures, network mocking, auth flows, debugging, and framework recipes for React, Next.js, Vue, and Angular. TypeScript and JavaScript.

185 Updated 1 weeks ago
testdino-hq
Data & Documents Listed

vibe-research

Set up and maintain a Vibe Research project with bi-directional sync between experimental code, paper.md, and developer docs. Use when starting a research project, managing experimental code, maintaining research documentation, creating academic papers, writing research logs, updating project docs, migrating an existing project to Vibe Research structure, or when the user mentions vibe research, paper sync, research log, experiment tracking, project migration, partial migration, incremental migration, doc update, or bi-directional sync between code and paper.

19 Updated 4 weeks ago
Zhangyanbo