Test that `markdown-out` writes the registry file

Đang mở
#38 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
55/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ệ
javascript, node.js
Lĩnh vực
testing

Hướng nghiên cứu

Start with test/action.test.js and inspect the existing tests and the README usage of markdown-out to find how the action is invoked and how variants are represented. Run npm test -- test/action.test.js to see the current behavior, then add coverage for a temporary output directory, the registry heading, one row per variant, and a clean exit code. Done when all acceptance criteria pass.

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

Mô tả

good first issue tests wave

Context

markdown-out is documented and used in the README, but no test checks the file exists or contains the expected table.

Scope

  • test/action.test.js

Acceptance criteria

  • The file is created in a temporary directory.
  • It starts with the registry heading and contains one row per variant.
  • The run exits 0 on a clean fixture.

Verification

npm test -- test/action.test.js

Complexity

Small (1 hour)

Part of Stellar Wave. Comment to claim this issue before starting.

Ngôn ngữ chính
JavaScript
Star
0
Fork
0
Merge trung bình
7 giờ 28 phút
Pull request đã merge (30 ngày)
10

Chuẩn bị môi trường

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 codepacct/codepact-action

Tất cả issue của codepacct/codepact-action

Issue tương tự

Thêm issue về JavaScript

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.