chore(cli): use 'vite test' replace 'vitest' command#206
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR improves the monorepo template by updating script names for clarity and standardizing the test command across the codebase to use 'vite test' instead of 'vitest'.
- Updated monorepo template scripts to use more descriptive names (
test:all,build:all) - Replaced 'vitest' commands with 'vite test' throughout the codebase
- Enhanced snap tests with silent flags and better package.json verification
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| vitest.config.ts | Changed import from vitest/config to @voidzero-dev/vite-plus |
| packages/global/templates/monorepo/vite.config.ts | Replaced test projects config with commented placeholders |
| packages/global/templates/monorepo/package.json | Updated script names to test:all and build:all for clarity |
| packages/global/src/new.ts | Added logic to replace vitest commands with 'vite test' |
| packages/global/snap-tests/new-monorepo/steps.json | Enhanced test verification by displaying package.json contents |
| packages/global/snap-tests/new-monorepo/snap.txt | Updated expected output with new script names and package.json display |
| packages/cli/snap-tests/npm-install-with-options/steps.json | Added --silent flag to npm install commands |
| packages/cli/snap-tests/npm-install-with-options/snap.txt | Updated expected output with reduced verbosity from silent flag |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
40d7e08 to
c95b8b3
Compare
Brooooooklyn
approved these changes
Sep 26, 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
Improved monorepo template scripts and added silent flag to npm install tests.
What changed?
package.jsonto use more descriptive names:prepublishOnlytobuild:alltesttotest:allreadyscript to use the new script names--silentflag to npm install commands in snap tests to reduce output verbosityfixPackageJsonForVitePlusfunction to properly update test scriptsvite.config.tsby replacing the test projects configuration with commented placeholders@voidzero-dev/vite-plusHow to test?
vp new my-monorepo --template monorepovp new --lib packages/my-lib --template reactvite test packages/cli/snap-tests/npm-install-with-optionsWhy make this change?
The script naming improvements make the monorepo template more intuitive and consistent. The
build:allandtest:allnames better reflect their purpose of running these commands across all packages. Adding the silent flag to npm install tests reduces noise in test output, making it easier to focus on relevant information. The package.json display in snap tests provides better verification of template generation.