web: add @vitest/coverage-v8 and close the component test gap — 22 of 26 components have zero tests
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python, react, typescript
- Lĩnh vực
- testing
Hướng nghiên cứu
Start with src/profiles/web/vitest.config.ts and src/profiles/web/package.json to see how the web tests and scripts are configured; the issue also names ConfigEditorModal.test.tsx and five components to prioritize. Add coverage support and tests for the listed components, then replace the stylesheet text assertions with behavior or class checks. Done means coverage runs successfully and the targeted tests cover the specified behavior.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
The Python side enforces --cov-fail-under=85, but the web suite has no coverage provider at all — npm test -- --coverage fails with "missing @vitest/coverage-v8". AGENTS.md's ">85% coverage" target is unenforceable for src/profiles/web (extends #41, which added the test infra, and #48, which gates CI).
Tested today: ConfigEditorModal, CopyableUrl, MarkdownMessage, SaveAsDialog, StatusBar, WorkflowRunnerModal, App.configEditor (editor slice only), utils barcodeDecoder/configDrop/fileProperties/searchSyntax/theme/useModalA11y, api/client.
Untested (22 components): ActionBar, BarcodeModal, CameraBarcodeModal, ConfirmDialog, ContextMenu, DirectoryPickerModal, DropConfigOverlay, EditableCombobox, ErrorBoundary, FileListTable, FilePropertiesModal, FilterSyntaxHelper, HeaderBar, InitErrorPanel, LoadConfigModal, LogViewerModal, ScanStatusStrip, SearchBar, ShortcutsModal, SingleMatchPromptModal, TimerModal, Tooltip. Untested utils: exportCsv.ts, barcodeScanner.ts.
Smell: ConfigEditorModal.test.tsx:1083,1142 asserts on raw stylesheet text — readFileSync(join(process.cwd(), "src", "index.css"), "utf8") — coupling tests to CSS string content (any reformat breaks the suite) and to the cwd.
Suggested fix
- Add
@vitest/coverage-v8, a"test:coverage"script and acoverageblock invitest.config.ts(includesrc/**, exclude*.test.*anddist); reference it in the future CI web job (#48). - Prioritize behavior-bearing untested components for tests: EditableCombobox, DirectoryPickerModal, LoadConfigModal, DropConfigOverlay, FileListTable.
- Replace the CSS
readFileSyncassertions with class-presence/behavior assertions or delete them.
- Ngôn ngữ chính
- Python
- Star
- 1
- Fork
- 1
- Merge trung bình
- 4 giờ 46 phút
- Pull request đã merge (30 ngày)
- 55
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 falbany/ProFiles
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
falbany/ProFiles#187 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Web UI: config handoff from a second launch leaves the open YAML editor showing stale contentĐang mởbug frontend
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug frontend
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug frontend
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của falbany/ProFiles
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
ip-tools/patzilla#219 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
EPSSClient commits to its SQLite cache once per score: a 100-CVE bulk fetch makes 101 disk flushesĐang mởpriority:p3 technical-debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
jimmy058910/jmo-security-repo#1673 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement ready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
-
integration: frontier_silicon
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
home-assistant/core#193176 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
task create and task update take --body-file and --stdinCó thể đã có người làm @JuanBarriosS đã nhận hôm nay. Đang mởcli enhancement good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 92/100
pyrite-wiki/pyrite#1687 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày