No unit tests for the build and start actions and the fs utils
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- typescript
Hướng nghiên cứu
Start with the referenced files: src/lib/utils/files.ts, src/action/actions/build.action.ts, and src/action/actions/start.action.ts; check existing test conventions and e2e/cli-build.test.ts for setup. Add unit coverage for nested assets and refused output folders, p2p target resolution, environment prefix splitting, and TLS resolution. Done means these cases are covered by passing tests; pull request #295 is already open against this issue.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Which package is this feature request for?
@nanoforge-dev/cli
Which command is this feature request for?
build
Feature
The code that deletes folders (resetFolder), copies assets (copyFiles), builds the p2p targets, resolves TLS and splits the NANOFORGE_CLIENT_*/NANOFORGE_SERVER_* env has no unit tests. There is no files.spec.ts, build.action.spec.ts, start.action.spec.ts or package-manager.spec.ts (src/lib/utils/files.ts#L1, src/action/actions/build.action.ts#L1, src/action/actions/start.action.ts#L1, src/lib/package-manager/package-manager.ts#L1). e2e/cli-build.test.ts only copies flat assets (line 70) and only tries a safe custom output folder (line 55). That is how the output-folder deletion and the nested-assets EISDIR bugs went unnoticed.
Found during a read-only audit of main at e95b881 (2026-11-11).
Ideal solution or implementation
Unit tests for:
files.ts: nested assets, and the output folders that must be refused;BuildAction.resolveTargetsin p2p mode;StartAction.parseEnv(prefix split) andresolveTLS.
Alternative solutions or implementations
No response
Other context
No response
- Ngôn ngữ chính
- TypeScript
- Star
- 2
- Fork
- 2
- Merge trung bình
- 2 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 17
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc 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 NanoForge-dev/CLI
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
NanoForge-dev/CLI#294 ·
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
NanoForge-dev/CLI#293 ·
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 76/100
NanoForge-dev/CLI#292 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
command:dev enhancement good first issue refactor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
NanoForge-dev/CLI#281 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug command:build good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
NanoForge-dev/CLI#276 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của NanoForge-dev/CLI
Issue tương tự
-
Mend: dependency security vulnerability
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 65/100
fdm-monster/fdm-monster#5563 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
be-BOP-io-SA/be-BOP#2849 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 1 ngày
-
1️⃣ phase/under-investigation flaky/confirmed flaky/needs-decision type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
growilabs/growi#12246 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
🐛 The Rulekeeper - An index run that gives up on the lock ends SucceededCó thể đã có người làm @github-actions đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
SSWConsulting/SSW.Rules#2809 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày