The Rstest homepage
Score6.8
Rank#5 of 23
PriceFree
Free planYes
Runs onBrowser extension, Web

Summary

Rstest is a free, open-source JavaScript and TypeScript testing framework built on Rsbuild and Rspack. It bundles tests through Rspack’s dependency graph and applies SWC transforms, and it can reuse configuration from Rsbuild, Rslib, or Rspack, including aliases, transforms, and plugins. Tests can run in Node.js, simulated DOM environments with jsdom or happy-dom, and real browsers. Browser Mode uses Playwright for Chromium, Firefox, and WebKit; an integration also supports end-to-end tests against local, preview, or deployed URLs. Rstest can load Module Federation remotes in Node, JSDOM, and Browser Mode tests. Its built-in tools include Jest-compatible assertions, snapshots, mocks, spies, file-level isolation, lifecycle hooks, reporters, filtering, and coverage reporting. Multi-project testing, sharding, report merging, and coverage thresholds support CI workflows. The Rstack VS Code extension lets users browse, run, and debug tests. Quick start requires Node.js 20.19.0 or newer, with the LTS version recommended. Rstest is available under the MIT license.

Who it is for

Rstest suits JavaScript and TypeScript developers who need tests across Node.js, simulated DOMs, or real browsers. It is also suited to projects using Rsbuild, Rslib, Rspack, or Module Federation.

What is good

  • Runs tests in Node.js, simulated DOMs, and browsers
  • Supports Chromium, Firefox, and WebKit via Playwright
  • Includes snapshots, mocks, spies, and coverage reporting
  • Supports CI sharding and multi-project testing
  • MIT-licensed and free

What to know first

  • Quick start requires Node.js 20.19.0 or newer
  • Editor integration is listed for VS Code

Verdict

Rstest combines common testing tools with browser testing, build configuration reuse, and CI features. Check the Node.js version requirement and whether its listed VS Code integration fits your workflow.

Rstest plans and pricing

All plans
Free and open source Free MIT license · JavaScript/TypeScript testing framework rstest.rs · 30 Sept 2026

Compared on JavaScript testing frameworks

Free plan
Yesrstest.rs
Component testing
Yesrstest.rs
Coverage reporting
Yesrstest.rs
Snapshot testing
Yesrstest.rs
Supported runtimes
Node.js, Bun, Deno, browserrstest.rs
Parallel execution
Yesrstest.rs

Facts

Purpose
Rstest is a JavaScript and TypeScript testing framework built on Rsbuild and Rspack.rstest.rs · 30 Sept 2026
Execution model
It bundles tests through Rspack's dependency-graph-based build pipeline and uses SWC transforms.rstest.rs · 30 Sept 2026
Build integration
Rstest can reuse Rsbuild, Rslib, or Rspack configuration, including aliases, transforms, and plugins.rstest.rs · 30 Sept 2026
Test environments
It runs tests in Node.js, simulated DOM environments using jsdom or happy-dom, and real browsers.rstest.rs · 30 Sept 2026
Browser support
Browser Mode uses Playwright and can run tests in Chromium, Firefox, and WebKit.rstest.rs · 30 Sept 2026
End-to-end testing
The @rstest/playwright integration runs E2E tests against local, preview, or deployed URLs.rstest.rs · 30 Sept 2026
Module Federation
Rstest can load real Module Federation remotes in Node, JSDOM, and Browser Mode tests through @module-federation/rstest.rstest.rs · 30 Sept 2026
CI scaling
It supports multi-project testing, test sharding, blob report merging, and coverage thresholds for CI workflows.rstest.rs · 30 Sept 2026
Testing features
Built-in capabilities include Jest-compatible assertions, snapshots, mocks, spies, file-level isolation, lifecycle hooks, reporters, and test filtering.rstest.rs · 30 Sept 2026
Editor integration
The Rstack VS Code extension lets users browse, run, and debug Rstest tests inside VS Code.rstest.rs · 30 Sept 2026
Runtime requirement
The quick start requires Node.js version 20.19.0 or newer and recommends the Node.js LTS version.rstest.rs · 30 Sept 2026
License
Rstest is free and open source software released under the MIT license.rstest.rs · 30 Sept 2026

Best Rstest alternatives

See all 12

Where it ranks on Everything Xiaomi

Is Rstest yours?

Claim it for free: prove the domain, then correct facts, plans and screenshots. An editor reviews every change.

Sources