Conversation
✅ Deploy Preview for rstest-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds @rstest/adapter-rsbuild, a new official adapter that allows Rstest to automatically inherit configuration from Rsbuild config files. This enables seamless integration between Rstest and Rsbuild projects, eliminating configuration duplication.
Key Changes
- Introduces
@rstest/adapter-rsbuildpackage withwithRsbuildConfig()function for extending Rstest config from Rsbuild - Adds comprehensive documentation in both English and Chinese explaining installation, usage, and configuration mapping
- Updates the React example to demonstrate the adapter usage, migrating from jsdom to happy-dom
Reviewed changes
Copilot reviewed 15 out of 16 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/adapter-rsbuild/src/index.ts | Core implementation of the adapter with config loading and conversion logic |
| packages/adapter-rsbuild/tests/index.test.ts | Test suite covering config loading, environment merging, and error handling |
| packages/adapter-rsbuild/package.json | Package configuration with dependencies and metadata |
| packages/adapter-rsbuild/README.md | Comprehensive adapter documentation with usage examples |
| packages/adapter-rsbuild/rslib.config.mts | Build configuration for the adapter package |
| packages/adapter-rsbuild/rstest.config.ts | Test configuration for the adapter package |
| packages/adapter-rsbuild/tsconfig.json | TypeScript configuration for the adapter |
| website/docs/en/guide/integration/rsbuild.mdx | English integration guide |
| website/docs/zh/guide/integration/rsbuild.mdx | Chinese integration guide |
| website/docs/en/guide/integration/adapters.mdx | Added Rsbuild adapter reference |
| website/docs/zh/guide/integration/adapters.mdx | Added Rsbuild adapter reference (Chinese) |
| website/docs/en/guide/integration/_meta.json | Updated navigation metadata |
| website/docs/zh/guide/integration/_meta.json | Updated navigation metadata (Chinese) |
| examples/react/rstest.config.ts | Refactored to use the new adapter |
| examples/react/package.json | Updated dependencies to use adapter and happy-dom |
| pnpm-lock.yaml | Dependency updates for new adapter package |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
chenjiahan
reviewed
Jan 5, 2026
Co-authored-by: neverland <chenjiahan.jait@bytedance.com>
Co-authored-by: neverland <chenjiahan.jait@bytedance.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Support extend Rstest configuration from Rsbuild config file via
@rstest/adapter-rsbuild.Related Links
Checklist