-
-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Rstest now supports core testing scenarios including Node / DOM testing, mocking, multi-project testing, and coverage collection, and has been successfully implemented in Rstack projects (including Rsbuild, Rslib, Rspack, and others).
The project is currently in active development, and we will continue to refine functionality and enhance the user experience based on community feedback.
Rstest features track
Basic Features
- Expect API (Jest Compatible)
- Lifecycle hooks (beforeAll、beforeEach、afterAll, etc.)
- Setup files
- Snapshot testing (Jest Compatible)
- Source map
- Test API (describe、test、only、each, etc.)
- In-source testing
- Default Reporter
- Out-of-the-box TypeScript / JSX support
- CLI
- rstest run
- rstest watch
- rstest list
- Spy & Rstest utility (
rstest.spyOn、rstest.fn, etc.) - Mocking
- mock
- doMock
- unmock
- importMock
- importActual
- resetModules
- hoist
- Config
- Test configuration support, such as
include,pool,setupFiles, etc. - Build configuration support, such as
resolve,transform,external, etc (based on rsbuild).
- Test configuration support, such as
- API Documentation
- Auto Mock
- Pool & isolated
- forks
- vmForks
- threads
- vmThreads
- Environment
- node
- jsdom
- happy-dom
- custom environment
- ESM support
- Watch mode
- CLI shortcuts
- Coverage
- v8
- istanbul
- Integration
- Out-of-the-box Rsbuild testing support
- Out-of-the-box Rslib testing support
- Out-of-the-box Rspack testing support
Advanced Features
- Projects
- Out-of-the-box Lynx testing support
- Rsdoctor integration
- More builtin reporters & Stablize Reporter API
- HTML Reporter
- JSON Reporter
- GitHub Actions Reporter
- Summary Reporter
- JUnit Reporter
- Custom Reporter
- Rstest UI (Provide UI to view and interact with tests)
- VS Code extension 🚧
- Test Sharding & merge reports
- Support filter tests via related source files
Further Features
- Browser Mode
- Benchmark testing
- Type testing
- AI Exploration
Timeless0911, chenjiahan, zoolsher, njzydark, scttcper and 57 moreDominusKelvin, denniscual, notimmates, abenhamdine, mmichels-brex and 29 more7rulnik, mmichels-brex, FredrikAugust, xcfox, pjean-dev and 11 more
Metadata
Metadata
Assignees
Labels
No labels