> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

![background](https://assets.rspack.rs/rspack/assets/landingpage-background-compressed.png)

![logo](https://assets.rspack.rs/rstest/rstest-logo.svg)

# Rstest

Rspack-based Testing Framework

Provide first-class support for Rspack ecosystem

Quick Start[GitHubGitHub](https://github.com/web-infra-dev/rstest)

♻️

## Reuse your build setup

Use existing Rsbuild or Rspack config so aliases, transforms, and plugins stay consistent in tests.

🎯

## Test through the build pipeline

Run tests through Rspack's bundling model to match production behavior more closely.

⚡

## Fast by design

Rspack-powered bundling keeps startup and reruns fast, even in larger projects.

🧠

## Modern by default

TypeScript, ESM, CJS, CSS Modules, and modern JavaScript work out of the box.

🧰

## Testing essentials included

Assertions, snapshots, mocks, coverage, and lifecycle hooks are ready when you start.

🌐

## Real browser testing

Run tests in Chromium, Firefox, or WebKit through Playwright when jsdom isn't enough.

# Rstack

The fast, unified JavaScript toolchain for developers and agents

[![Rspack](https://assets.rspack.rs/rspack/rspack-logo.svg)RspackA fast Rust-based bundler for the web, with a modernized webpack API

rspack.rs](https://rspack.rs)[![Rsbuild](https://assets.rspack.rs/rsbuild/rsbuild-logo.svg)RsbuildA fast, extensible build tool for modern web development, powered by Rspack

rsbuild.rs](https://rsbuild.rs)[![Rslib](https://assets.rspack.rs/rslib/rslib-logo.svg)RslibAn Rsbuild-based library development tool for creating libraries and UI components

rslib.rs](https://rslib.rs)[![Rspress](https://assets.rspack.rs/rspress/rspress-logo-480x480.png)RspressAn Rsbuild-based static site generator for creating documentation sites

rspress.rs](https://rspress.rs)[![Rsdoctor](https://assets.rspack.rs/rsdoctor/rsdoctor-logo-480x480.png)RsdoctorAn AI-friendly build analyzer that makes the build process transparent

rsdoctor.rs](https://rsdoctor.rs)[![Rstest](https://assets.rspack.rs/rstest/rstest-logo.svg)RstestA JavaScript testing framework powered by Rspack, with a Jest-compatible API

rstest.rs](https://rstest.rs/)[![Rslint](https://assets.rspack.rs/rslint/rslint-logo.svg)RslintA high-performance, ESLint-compatible linter for JavaScript and TypeScript

rslint.rs](https://rslint.rs/)

Rstest is free and open source software released under the MIT license.

© 2024-present ByteDance Inc.

