Test the JSON Schema against every committed example

Aperta
#24 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
76/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript, json
Ambito
testing, tooling

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
JavaScript
Stelle
0
Fork
1
Merge medio
14h 38m
PR unite (30g)
9

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di codepacct/codepact-conventions

Tutte le issue di codepacct/codepact-conventions

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.