fix(cli): export additional vitest values from cli package#334
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds missing Vitest configuration exports to the CLI package to ensure complete API coverage and stability. The change enables users to access important Vitest configuration utilities (like configDefaults, coverageConfigDefaults, and defineProject) directly from the CLI package rather than importing them from the underlying test package.
Key Changes
- Exported six additional Vitest configuration values from
@voidzero-dev/vite-plus-test/config - Added a test file to verify the exported values are accessible and properly defined
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| packages/cli/src/index.ts | Added exports for configDefaults, coverageConfigDefaults, defaultExclude, defaultInclude, defaultBrowserPort, and defineProject from the test config module with a TODO comment about maintaining sync with Vitest |
| packages/cli/src/tests/index.spec.ts | Added new test file to verify that the exported Vitest configuration values are properly defined and accessible |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Member
Author
|
test worked on vue-core https://github.com/fengmk2/vue-core/actions/runs/19920589728/job/57108328670?pr=1 |
Brooooooklyn
approved these changes
Dec 4, 2025
Member
Author
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.

TL;DR
Added missing Vitest exports to the CLI package to ensure API stability.
What changed?
configDefaults,coverageConfigDefaults,defaultExclude,defaultInclude,defaultBrowserPort, anddefineProjectfrom@voidzero-dev/vite-plus-test/configin the CLI packageHow to test?
Run the newly added test to verify that all exports are properly defined:
pnpm test packages/cli/src/__tests__/index.spec.tsWhy make this change?
This change ensures API stability by exposing all necessary Vitest exports through the CLI package. Users who import these values from the CLI package will now have access to the complete set of configuration utilities, making the API more consistent and comprehensive.