refactor(create-rslib): use Vue Test Utils in templates - #1834
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the create-rslib Vue (JS/TS) templates to use the official @vue/test-utils package for component testing instead of @testing-library/vue, aligning the generated starter tests with Vue’s recommended tooling.
Changes:
- Switched template component tests from
render/screen(Testing Library) tomount(Vue Test Utils). - Updated Vue template dependencies to remove
@testing-library/vue. - Adjusted template package metadata ordering (moved
publishConfigplacement).
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| packages/create-rslib/template-vue-ts/tests/index.test.ts | Migrates the Vue TS template test to Vue Test Utils mounting. |
| packages/create-rslib/template-vue-ts/package.json | Removes @testing-library/vue from devDependencies and reorders publishConfig. |
| packages/create-rslib/template-vue-js/tests/index.test.js | Migrates the Vue JS template test to Vue Test Utils mounting. |
| packages/create-rslib/template-vue-js/package.json | Removes @testing-library/vue from devDependencies and reorders publishConfig. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 24d43c33dd
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Summary
@testing-library/vuewith the official@vue/test-utilspackage in the Vue JavaScript and TypeScript templates.Related Links
Checklist