https://github.com/web-infra-dev/rstest
The testing framework powered by Rspack (WIP).
https://github.com/web-infra-dev/rstest
rsbuild rstack rstest test test-tools testing testing-framework
Last synced: 12 days ago
JSON representation
The testing framework powered by Rspack (WIP).
- Host: GitHub
- URL: https://github.com/web-infra-dev/rstest
- Owner: web-infra-dev
- License: mit
- Created: 2024-11-11T07:44:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-16T03:56:39.000Z (7 months ago)
- Last Synced: 2025-06-16T04:50:40.272Z (7 months ago)
- Topics: rsbuild, rstack, rstest, test, test-tools, testing, testing-framework
- Language: TypeScript
- Homepage: https://rstest.rs
- Size: 1.17 MB
- Stars: 301
- Watchers: 5
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
- stars - rstest - infra-dev | 417 | (TypeScript)
- awesome-rstack - Rstest - square&colorA=564341&colorB=EDED91" alt="npm version" /></a> | (Resources / Rstack)
README

# Rstest
Rstest is a testing framework powered by Rspack. It delivers comprehensive, first-class support for the Rspack ecosystem, enabling seamless integration into existing Rspack-based projects.
Rstest offers full Jest-compatible APIs while providing native, out-of-the-box support for TypeScript, ESM, and more, ensuring a modern and efficient testing experience.
## 📖 Documentation
See [Documentation](https://rstest.rs).
## 🔥 Roadmap
Rstest now supports core testing scenarios including Node.js testing, DOM testing, mocking, multi-project testing, and coverage collection. It is already in active use across the Rstack ecosystem, including projects like Rspack, Rsbuild and Rslib.
The project is currently in active development, and we will continue to refine functionality and enhance the user experience based on community feedback. For future development plans, please refer to the [Rstest Roadmap](https://github.com/web-infra-dev/rstest/issues/85).
## 🦀 Rstack
Rstack is a unified JavaScript toolchain centered on Rspack, with high performance and consistent architecture.
| Name | Description | Version |
| ----------------------------------------------------- | ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Rspack](https://github.com/web-infra-dev/rspack) | Bundler |
|
| [Rsbuild](https://github.com/web-infra-dev/rsbuild) | Build tool |
|
| [Rslib](https://github.com/web-infra-dev/rslib) | Library development tool |
|
| [Rspress](https://github.com/web-infra-dev/rspress) | Static site generator |
|
| [Rsdoctor](https://github.com/web-infra-dev/rsdoctor) | Build analyzer |
|
| [Rstest](https://github.com/web-infra-dev/rstest) | Testing framework |
|
| [Rslint](https://github.com/web-infra-dev/rslint) | Linter |
|
## 🙏 Credits
Rstest has been inspired by several outstanding projects in the community. We would like to acknowledge and express our sincere gratitude to the following projects:
- Several API design patterns have been influenced by [Jest](https://jestjs.io/) and [Vitest](https://vitest.dev/).
- Some functions in Rstest are referenced from Vitest, such as the `expect`, `expect.poll` and `snapshot` API, etc.
## 📖 License
Rstest is licensed under the [MIT License](https://github.com/web-infra-dev/rstest/blob/main/LICENSE).