Skip to content

feat(create-rsbuild): add rstest as optional tool#6759

Merged
chenjiahan merged 5 commits intomainfrom
rstest-template
Dec 12, 2025
Merged

feat(create-rsbuild): add rstest as optional tool#6759
chenjiahan merged 5 commits intomainfrom
rstest-template

Conversation

@9aoy
Copy link
Contributor

@9aoy 9aoy commented Dec 12, 2025

Summary

  • feat(create-rsbuild): add rstest as optional tool
    • add rstest template for react、vue3、common projects
  • bump create-rstack v1.7.17 to support action params

img_v3_02ss_da4a5984-e1b8-48aa-bdf6-e0f4cb9ddf5g

Related Links

https://github.com/rspack-contrib/create-rstack/releases/tag/v1.7.17

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings December 12, 2025 03:09
@netlify
Copy link

netlify bot commented Dec 12, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit f67bc6a
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/693bb96aa658ed0008114a95
😎 Deploy Preview https://deploy-preview-6759--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 69 (🟢 up 12 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@9aoy 9aoy requested a review from chenjiahan December 12, 2025 07:05
Copy link
Member

@chenjiahan chenjiahan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@chenjiahan chenjiahan merged commit a91a899 into main Dec 12, 2025
12 checks passed
@chenjiahan chenjiahan deleted the rstest-template branch December 12, 2025 09:45
This was referenced Dec 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants