feat(create-rsbuild): add rstest as optional tool#6759
Merged
chenjiahan merged 5 commits intomainfrom Dec 12, 2025
Merged
Conversation
✅ Deploy Preview for rsbuild ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
9aoy
commented
Dec 12, 2025
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds rstest as an optional tool when creating new Rsbuild projects, enabling users to set up unit testing for React and Vue3 projects. The implementation bumps the create-rstack dependency to v1.7.17 to support action parameters required for the rstest integration.
Key changes:
- Added rstest template files for React (JS/TS) and Vue (JS/TS) variants with testing configurations
- Updated documentation to reflect the new rstest option in the CLI tool list
- Bumped create-rstack from v1.7.14 to v1.7.17 to enable action parameter support
Reviewed changes
Copilot reviewed 24 out of 25 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| website/docs/zh/guide/start/quick-start.mdx | Added rstest to the Chinese documentation's CLI tools list and interactive selection display |
| website/docs/en/guide/start/quick-start.mdx | Added rstest to the English documentation's CLI tools list and interactive selection display |
| rstest.config.ts | Excluded the new template-rstest folder from the main project's test runs |
| pnpm-lock.yaml | Updated lockfile with create-rstack v1.7.17 dependency |
| packages/create-rsbuild/template-rstest/vue-ts/* | Added Vue TypeScript testing template with rstest configuration and sample test |
| packages/create-rsbuild/template-rstest/vue-js/* | Added Vue JavaScript testing template with rstest configuration and sample test |
| packages/create-rsbuild/template-rstest/react-ts/* | Added React TypeScript testing template with rstest configuration and sample test |
| packages/create-rsbuild/template-rstest/react-js/* | Added React JavaScript testing template with rstest configuration and sample test |
| packages/create-rsbuild/template-rstest/AGENTS.md | Added documentation for AI agents about rstest commands and resources |
| packages/create-rsbuild/src/index.ts | Implemented mapRstestTemplate function and rstest tool configuration with copyFolder action |
| packages/create-rsbuild/package.json | Updated create-rstack dependency to v1.7.17 |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
chenjiahan
reviewed
Dec 12, 2025
chenjiahan
reviewed
Dec 12, 2025
This was referenced Dec 14, 2025
Merged
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
Related Links
https://github.com/rspack-contrib/create-rstack/releases/tag/v1.7.17
Checklist