EVERYTHING XIAOMI
Get listed
Rstest logo

Rstest

Rstest is a free, open-source JavaScript and TypeScript testing framework built on Rsbuild and Rspack.

Place
#14 of 23
Score
5.9
Rstest's website

What Rstest is

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.

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

Watch out

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

Who it suits

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.

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.

Plans and prices

From Rstest's own pricing page, checked 30 Sep 2026.

All about pricing
PlanPriceWhat it gives you
Free and open sourceFreeMIT license · JavaScript/TypeScript testing framework

The facts

Each one read from Rstest's own pages, with the date it was checked.

Where it runs

Browser support
Browser Mode uses Playwright and can run tests in Chromium, Firefox, and WebKit.checked 30 Sep 2026

What it does

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

Alternatives to Rstest

All alternatives
  1. 1QUnit logo

    QUnit

    Free planAndroidiOSWebAPI
    7.4Free plan
  2. 2Web Test Runner logo

    Web Test Runner

    Free planWebLinuxmacOSSelf-hosted
    6.9Free plan
  3. 3Cucumber.js logo

    Cucumber.js

    Free planLinuxmacOSSelf-hostedWindows
    6.8Free plan
  4. 4

    Karma

    Free planAndroidiOSWebLinux
    6.7Free plan
  5. 5Vitest logo

    Vitest

    Free planWebLinuxmacOSWindows
    6.6Free plan
  6. 6

    Jasmine

    Free planWebLinuxmacOSWindows
    6.5Free plan