`vp test --help` omits Vitest 5 CLI options (`--repeats`, `--fsModuleCache`, `--sharedViteServer`, ...)
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 75/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- nodejs, typescript
調査の方向性
ヘルプテキストは packages/cli/src/help.ts にあります。そこにリストされているCLIオプションを、バンドルされている vitest@5.0.1 の 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 vitest@5.0.1 (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
- スター
- 5.8k
- フォーク
- 263
- 平均マージ
- 1日 3時間
- マージ済み PR(30日)
- 147
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
voidzero-dev/vite-plus のほかの issue
-
pending triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
voidzero-dev/vite-plus#2801 · リアクション 1 件 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
voidzero-dev/vite-plus#2097 · コメント 10 件 · リアクション 2 件 ·
-
documentation
voidzero-dev/vite-plus#2800 · 担当者 1 名 ·
-
pending triage
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
voidzero-dev/vite-plus#2796 · コメント 1 件 ·
-
pending triage
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
voidzero-dev/vite-plus#2781 · リアクション 2 件 ·
voidzero-dev/vite-plus の issue をすべて見る
似ている issue
-
bug CLI custom-model
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
rust-bitcoin/rust-bitcoin#6930 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
fulcrumgenomics/ferro-hgvs#2251 ·
-
A-allocators A-docs C-enhancement T-libs
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100