Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

Rstest

rstest.rs

  • Free plan
  • Web
  • Browser extension
6.9 Club score Visit rstest.rs

What Rstest is

Rstest is a free, open-source testing framework for JavaScript and TypeScript. It builds on Rsbuild and Rspack, bundling tests through Rspack’s dependency graph and applying SWC transforms. Projects can reuse Rsbuild, Rslib, or Rspack configuration, including aliases, transforms, and plugins. Tests run in Node.js, simulated DOM environments with jsdom or happy-dom, and real browsers. Browser Mode uses Playwright for Chromium, Firefox, and WebKit; the @rstest/playwright integration can run end-to-end tests against local, preview, or deployed URLs. Rstest also supports Module Federation remotes in Node, JSDOM, and Browser Mode tests. Built-in capabilities include Jest-compatible assertions, snapshots, mocks, spies, isolation, lifecycle hooks, reporters, filtering, and coverage reporting. For CI, it supports multi-project testing, sharding, merging blob reports, and coverage thresholds. The Rstack VS Code extension lets developers browse, run, and debug tests. Quick start requires Node.js 20.19.0 or newer; the project recommends Node.js LTS. Rstest is released under the MIT license.

Who it suits

Rstest suits JavaScript and TypeScript teams looking to test across Node.js, simulated DOMs, or real browsers. Its CI features and configuration reuse may also fit projects using Rsbuild, Rslib, or Rspack.

Good to know, and what to watch

  • Runs tests in Node.js, simulated DOMs, and real browsers
  • Reuses Rsbuild, Rslib, or Rspack configuration
  • Includes snapshots, mocks, spies, and coverage reporting
  • Supports sharding and multi-project CI workflows
  • Free and open source under the MIT license
  • Quick start requires Node.js 20.19.0 or newer
  • Browser Mode uses Playwright

Free and open source

Free

Free plan

The verdict

Rstest brings a broad set of JavaScript and TypeScript testing tools together with build configuration reuse and CI support. Check the Node.js requirement if you are setting it up from scratch.

What the maker publishes

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

Checked against the maker's pages on 30 Sept 2026.