Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

`vp test --help` omits Vitest 5 CLI options (`--repeats`, `--fsModuleCache`, `--sharedViteServer`, ...)

已关闭 适合新手
#2,804 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 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
  1. vp test --help | grep -E 'repeats|fsModuleCache|sharedViteServer|injectCjsGlobals': only the --clearCache line (with the old experimental. name) matches.
  2. 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 cliOptionsConfig defines 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

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

voidzero-dev/vite-plus 的其他 Issue

查看 voidzero-dev/vite-plus 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。