Commit 5f8edc2
authored
fix(cli): export additional vitest values from cli package (#334)
### TL;DR
Added missing Vitest exports to the CLI package to ensure API stability.
### What changed?
- Added exports for `configDefaults`, `coverageConfigDefaults`, `defaultExclude`, `defaultInclude`, `defaultBrowserPort`, and `defineProject` from `@voidzero-dev/vite-plus-test/config` in the CLI package
- Added a test file to verify that these exports are properly defined and accessible
- Added a TODO comment to track the need to keep exports in sync with Vitest
### How to test?
Run the newly added test to verify that all exports are properly defined:
```bash
pnpm test packages/cli/src/__tests__/index.spec.ts
```
### Why 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.1 parent 286ce5d commit 5f8edc2
2 files changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
0 commit comments