Test that `markdown-out` writes the registry file

Aperta
#38 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript, node.js
Ambito
testing

Direzione di ricerca

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.

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

Descrizione

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.

Lingua principale
JavaScript
Stelle
0
Fork
0
Merge medio
7h 28m
PR unite (30g)
10

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

Tutte le issue di codepacct/codepact-action

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.