chore(create-rsbuild): move setup files to test dir#6881
Merged
chenjiahan merged 1 commit intomainfrom Jan 2, 2026
Merged
Conversation
✅ Deploy Preview for rsbuild 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 reorganizes the test setup files for rstest templates by moving rstest.setup.{ts,js} files from the project root into the tests/ directory across all template variants. This improves project structure by keeping test-related files together and reducing root-level clutter.
- Moved setup files from root to
tests/directory for all 6 rstest template variants - Updated all
rstest.config.{ts,js}files to reference the new setup file paths
Reviewed changes
Copilot reviewed 6 out of 12 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
packages/create-rsbuild/template-rstest/vue-ts/tests/rstest.setup.ts |
Added setup file to tests directory with jest-dom matcher extensions |
packages/create-rsbuild/template-rstest/vue-ts/rstest.config.ts |
Updated setupFiles path to reference new location |
packages/create-rsbuild/template-rstest/vue-js/tests/rstest.setup.js |
Added setup file to tests directory with jest-dom matcher extensions |
packages/create-rsbuild/template-rstest/vue-js/rstest.config.js |
Updated setupFiles path to reference new location |
packages/create-rsbuild/template-rstest/vanilla-ts/tests/rstest.setup.ts |
Added setup file to tests directory with jest-dom matcher extensions |
packages/create-rsbuild/template-rstest/vanilla-ts/rstest.config.ts |
Updated setupFiles path to reference new location |
packages/create-rsbuild/template-rstest/vanilla-js/tests/rstest.setup.js |
Added setup file to tests directory with jest-dom matcher extensions |
packages/create-rsbuild/template-rstest/vanilla-js/rstest.config.js |
Updated setupFiles path to reference new location |
packages/create-rsbuild/template-rstest/react-ts/tests/rstest.setup.ts |
Added setup file to tests directory with jest-dom matcher extensions |
packages/create-rsbuild/template-rstest/react-ts/rstest.config.ts |
Updated setupFiles path to reference new location |
packages/create-rsbuild/template-rstest/react-js/tests/rstest.setup.js |
Added setup file to tests directory with jest-dom matcher extensions |
packages/create-rsbuild/template-rstest/react-js/rstest.config.js |
Updated setupFiles path to reference new location |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
This PR moves the Rstest setup file from the project root into the
test/directory.The setup file is test-specific initialization logic. Keeping it under
test/makes the project structure clearer, reduces root-level clutter.Checklist