`vp test --help` omits Vitest 5 CLI options (`--repeats`, `--fsModuleCache`, `--sharedViteServer`, ...)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 75/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- nodejs, typescript
调研方向
帮助文本位于 packages/cli/src/help.ts。将此处列出的 CLI 选项与捆绑的 [email protected] 中的 cliOptionsConfig 进行比较,以识别缺失的选项,例如 --repeats 和 --fsModuleCache。更新帮助列表并更正 --clearCache 的描述。通过运行 vp test --help 并检查新选项是否出现来进行验证。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
vp test --help prints a static option list (packages/cli/src/help.ts) that has not caught up with Vitest 5. These top-level CLI options defined by the bundled [email protected] (cliOptionsConfig) are missing from the help, although vp test forwards them and they work:
--repeats <number>: repeat every test a number of times regardless of the result--injectCjsGlobals--fsModuleCache--fsModuleCachePath <path>--sharedViteServer
Also, the --clearCache description still says it deletes caches "including experimental.fsModuleCache". In Vitest 5 that option is the top-level fsModuleCache.
For example, vp test --repeats 3 runs every test four times as expected, but a user reading vp test --help has no way to discover the flag.
Reproduction
Any Vite+ 1.0.0-rc.0 project with tests.
Steps to reproduce
vp test --help | grep -E 'repeats|fsModuleCache|sharedViteServer|injectCjsGlobals': only the--clearCacheline (with the oldexperimental.name) matches.vp test --repeats 1: the flag is accepted and every test runs twice.
System Info
vite-plus 1.0.0-rc.0 (global and local), bundled vitest 5.0.1
Node.js 24.20.0, pnpm 11.25.0, macOS (darwin arm64)
Used Package Manager
pnpm
Logs
No response
Validations
- Read the Contributing Guidelines.
- Check that there isn't already an issue for the same bug.
- Confirm this is a Vite+ issue and not an upstream issue (Vitest's own
cliOptionsConfigdefines these options; the gap is in Vite+'s help list). - The provided reproduction is a minimal reproducible example.
- 主要语言
- Rust
- 星标
- 6k
- 派生
- 274
- 平均合并
- 1 天 11 小时
- 30 天内合并 PR
- 206
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
voidzero-dev/vite-plus 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 70/100
voidzero-dev/vite-plus#2970 ·
维护者通常 1 天内回复
-
pending triage
难度 2/5 1-3 小时 新手友好度 72/100
voidzero-dev/vite-plus#2882 · 2 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 62/100
voidzero-dev/vite-plus#2097 · 10 条评论 · 2 个 reaction ·
维护者通常 1 天内回复
-
Windows: PowerShell installer (1.1.0) does not add vite-plus\bin to user PATH — 'vp' not recognized未关闭
难度 4/5 3-5 天 新手友好度 30/100
voidzero-dev/vite-plus#2984 · 1 条评论 ·
维护者通常 1 天内回复
-
pending triage
难度 3/5 1-2 天 新手友好度 40/100
voidzero-dev/vite-plus#2983 ·
维护者通常 1 天内回复
查看 voidzero-dev/vite-plus 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
NuSkooler/enigma-bbs#907 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
EasyTier/EasyTier#2672 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 84/100
repowise-dev/repowise#3374 ·
维护者通常 1 天内回复