`vp test --help` omits Vitest 5 CLI options (`--repeats`, `--fsModuleCache`, `--sharedViteServer`, ...)
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
- Lĩnh vực
- cli, developer-experience, documentation
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
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.
- 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
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của voidzero-dev/vite-plus
-
pending triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
voidzero-dev/vite-plus#2801 · 1 reaction ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
voidzero-dev/vite-plus#2097 · 10 bình luận · 2 reaction ·
-
documentation
voidzero-dev/vite-plus#2800 · 1 người được giao ·
-
pending triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
voidzero-dev/vite-plus#2796 · 1 bình luận ·
-
pending triage
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
voidzero-dev/vite-plus#2781 · 2 reaction ·
Tất cả issue của voidzero-dev/vite-plus
Issue tương tự
-
bug github_actions
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
registrystack/registry-stack#1393 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
longbridge/gpui-kit#3223 ·
-
bug engine
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
rocky-data/rocky#2181 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
oasisprotocol/oasis-sdk#2523 ·
-
[indexer] [QA] Add a focused test for the new NonRetryableError / assertSocketAlive() behavior. Đang mởbot:ai-assisted component:indexer QA-roadmap status:untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
midnightntwrk/midnight-indexer#1557 ·