-
-
Notifications
You must be signed in to change notification settings - Fork 59
feat(create-rslib): use @rstest/adapter-rslib
#1415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for rslib ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this 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 rstest configuration across all create-rslib templates to use the new @rstest/adapter-rslib package. This adapter automatically imports configuration from rslib.config files, eliminating duplication of plugin setup and test environment settings between rslib and rstest configurations.
- Introduces
@rstest/adapter-rslib ^0.1.0as a dependency across all rstest templates - Simplifies rstest configuration by delegating plugin and environment setup to the rslib adapter
- Maintains consistency across all template variants (Vue, React, Node with TypeScript/JavaScript)
Reviewed changes
Copilot reviewed 36 out of 36 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/create-rslib/template-[vue]-[rstest]-ts/rstest.config.ts | Uses adapter to inherit Vue plugin config from rslib.config |
| packages/create-rslib/template-[vue]-[rstest]-ts/package.json | Adds @rstest/adapter-rslib dependency |
| packages/create-rslib/template-[vue]-[rstest]-js/rstest.config.js | Uses adapter to inherit Vue plugin config from rslib.config |
| packages/create-rslib/template-[vue]-[rstest]-js/package.json | Adds @rstest/adapter-rslib dependency |
| packages/create-rslib/template-[vue]-[rstest,storybook]-ts/rstest.config.ts | Uses adapter to inherit Vue plugin config from rslib.config |
| packages/create-rslib/template-[vue]-[rstest,storybook]-ts/package.json | Adds @rstest/adapter-rslib dependency |
| packages/create-rslib/template-[vue]-[rstest,storybook]-js/rstest.config.js | Uses adapter to inherit Vue plugin config from rslib.config |
| packages/create-rslib/template-[vue]-[rstest,storybook]-js/package.json | Adds @rstest/adapter-rslib dependency |
| packages/create-rslib/template-[react]-[rstest]-ts/rstest.config.ts | Uses adapter to inherit React plugin config from rslib.config |
| packages/create-rslib/template-[react]-[rstest]-ts/package.json | Adds @rstest/adapter-rslib dependency |
| packages/create-rslib/template-[react]-[rstest]-js/rstest.config.js | Uses adapter to inherit React plugin config from rslib.config |
| packages/create-rslib/template-[react]-[rstest]-js/package.json | Adds @rstest/adapter-rslib dependency |
| packages/create-rslib/template-[react]-[rstest,storybook]-ts/rstest.config.ts | Uses adapter to inherit React plugin config from rslib.config |
| packages/create-rslib/template-[react]-[rstest,storybook]-ts/package.json | Adds @rstest/adapter-rslib dependency |
| packages/create-rslib/template-[react]-[rstest,storybook]-js/rstest.config.js | Uses adapter to inherit React plugin config from rslib.config |
| packages/create-rslib/template-[react]-[rstest,storybook]-js/package.json | Adds @rstest/adapter-rslib dependency |
| packages/create-rslib/template-[node-esm]-[rstest]-ts/rstest.config.ts | Uses adapter to inherit node config from rslib.config |
| packages/create-rslib/template-[node-esm]-[rstest]-ts/package.json | Adds @rstest/adapter-rslib dependency |
| packages/create-rslib/template-[node-esm]-[rstest]-js/rstest.config.js | Uses adapter to inherit node config from rslib.config |
| packages/create-rslib/template-[node-esm]-[rstest]-js/package.json | Adds @rstest/adapter-rslib dependency |
| packages/create-rslib/template-[node-dual]-[rstest]-ts/rstest.config.ts | Uses adapter to inherit node config from rslib.config |
| packages/create-rslib/template-[node-dual]-[rstest]-ts/package.json | Adds @rstest/adapter-rslib dependency |
| packages/create-rslib/template-[node-dual]-[rstest]-js/rstest.config.js | Uses adapter to inherit node config from rslib.config |
| packages/create-rslib/template-[node-dual]-[rstest]-js/package.json | Adds @rstest/adapter-rslib dependency |
| packages/create-rslib/fragments/tools/rstest-vue-ts/rstest.config.ts | Fragment: uses adapter to inherit Vue plugin config |
| packages/create-rslib/fragments/tools/rstest-vue-ts/package.json | Fragment: adds @rstest/adapter-rslib dependency |
| packages/create-rslib/fragments/tools/rstest-vue-js/rstest.config.js | Fragment: uses adapter to inherit Vue plugin config |
| packages/create-rslib/fragments/tools/rstest-vue-js/package.json | Fragment: adds @rstest/adapter-rslib dependency |
| packages/create-rslib/fragments/tools/rstest-react-ts/rstest.config.ts | Fragment: uses adapter to inherit React plugin config |
| packages/create-rslib/fragments/tools/rstest-react-ts/package.json | Fragment: adds @rstest/adapter-rslib dependency |
| packages/create-rslib/fragments/tools/rstest-react-js/rstest.config.js | Fragment: uses adapter to inherit React plugin config |
| packages/create-rslib/fragments/tools/rstest-react-js/package.json | Fragment: adds @rstest/adapter-rslib dependency |
| packages/create-rslib/fragments/tools/rstest-node-ts/rstest.config.ts | Fragment: uses adapter to inherit node config |
| packages/create-rslib/fragments/tools/rstest-node-ts/package.json | Fragment: adds @rstest/adapter-rslib dependency |
| packages/create-rslib/fragments/tools/rstest-node-js/rstest.config.js | Fragment: uses adapter to inherit node config |
| packages/create-rslib/fragments/tools/rstest-node-js/package.json | Fragment: adds @rstest/adapter-rslib dependency |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
use
@rstest/adapter-rslibin rstest template to reuse rslib's configuration in rstest.Related Links
Checklist