Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở Phù hợp với người mới
#2,804 0 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
75/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
nodejs, typescript

Hướng nghiên cứu

Văn bản trợ giúp nằm trong packages/cli/src/help.ts. So sánh các tùy chọn CLI được liệt kê ở đó với cliOptionsConfig từ vitest@5.0.1 đã đóng gói để xác định các tùy chọn bị thiếu như --repeats và --fsModuleCache. Cập nhật danh sách trợ giúp và sửa mô tả của --clearCache. Xác minh bằng cách chạy vp test --help và kiểm tra xem các tùy chọn mới có xuất hiện không.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Rust
Star
5.8k
Fork
263
Merge trung bình
1 ngày 3 giờ
Pull request đã merge (30 ngày)
147

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của voidzero-dev/vite-plus

Tất cả issue của voidzero-dev/vite-plus

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.