Test the JSON Schema against every committed example

Đang mở
#24 0 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ó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
76/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, json
Lĩnh vực
testing, tooling

Hướng nghiên cứu

Start with test/schema.test.js and inspect the committed JSON files under examples/ to see how tests and the in-repo validator are structured. Add coverage for every examples/*.json file, asserting that valid examples pass and invalid examples fail without network access or a new dependency. Run npm test -- test/schema.test.js; done means all examples are checked and the test passes.

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

The schema and the examples can drift. A schema that rejects examples/valid.codepact.config.json would be caught only by a user.

Scope

  • test/schema.test.js
  • examples/

Acceptance criteria

  • The test loads every examples/*.json file and validates it with a small in-repo validator.
  • Valid examples pass and invalid examples fail.
  • No network or new dependency is required.

Verification

npm test -- test/schema.test.js

Complexity

Medium (3 hours)

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

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

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-conventions

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

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.