Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン 初心者向け
#2,804 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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
  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
スター
5.8k
フォーク
263
平均マージ
1日 3時間
マージ済み PR(30日)
147

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

voidzero-dev/vite-plus のほかの issue

voidzero-dev/vite-plus の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。