Skip to content

chore(create-rsbuild): move setup files to test dir#6881

Merged
chenjiahan merged 1 commit intomainfrom
setup_files_0101
Jan 2, 2026
Merged

chore(create-rsbuild): move setup files to test dir#6881
chenjiahan merged 1 commit intomainfrom
setup_files_0101

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

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

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

Copilot AI review requested due to automatic review settings January 1, 2026 13:29
@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 1, 2026

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 6fb90bc
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/695676d9cda81b00083a6d27
😎 Deploy Preview https://deploy-preview-6881--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: 67 (🔴 down 1 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
Copy Markdown
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 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.

@chenjiahan chenjiahan merged commit 0ff5641 into main Jan 2, 2026
17 checks passed
@chenjiahan chenjiahan deleted the setup_files_0101 branch January 2, 2026 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants