Skip to content

test: use @rstest/adapter-rslib#6860

Merged
chenjiahan merged 7 commits intomainfrom
adapter-rslib
Dec 30, 2025
Merged

test: use @rstest/adapter-rslib#6860
chenjiahan merged 7 commits intomainfrom
adapter-rslib

Conversation

@9aoy
Copy link
Copy Markdown
Contributor

@9aoy 9aoy commented Dec 29, 2025

Summary

Using @rstest/adapter-rslib to reuse Rslib configurations allows for seamless testing.

https://rstest.rs/guide/integration/rslib

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings December 29, 2025 08:03
@netlify
Copy link
Copy Markdown

netlify Bot commented Dec 29, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 0859577
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/69539f41da2e5a0008cfe340
😎 Deploy Preview https://deploy-preview-6860--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 (🟢 up 8 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 refactors the test configuration to use the @rstest/adapter-rslib package, which enables seamless reuse of Rslib configurations for testing instead of manually importing specific configurations.

  • Replaced direct import of define from rslib.config with withRslibConfig adapter
  • Added @rstest/adapter-rslib@^0.1.1 as a dev dependency
  • Configured the adapter to load the entire rslib configuration from packages/core/rslib.config.ts

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
rstest.config.ts Migrated from directly importing define to using withRslibConfig adapter with extends property for cleaner configuration reuse
package.json Added @rstest/adapter-rslib v0.1.1 as a dev dependency
pnpm-lock.yaml Updated lockfile with the new adapter package and its peer dependencies (@rslib/core >= 0.18.6)
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@9aoy 9aoy requested a review from chenjiahan December 30, 2025 09:27
Comment thread rstest.config.ts Outdated
chenjiahan
chenjiahan previously approved these changes Dec 30, 2025
@chenjiahan chenjiahan enabled auto-merge (squash) December 30, 2025 09:43
@9aoy 9aoy disabled auto-merge December 30, 2025 09:44
@chenjiahan chenjiahan enabled auto-merge (squash) December 30, 2025 09:46
@chenjiahan chenjiahan merged commit aeec770 into main Dec 30, 2025
11 checks passed
@chenjiahan chenjiahan deleted the adapter-rslib branch December 30, 2025 09:59
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.

3 participants