Test that `markdown-out` writes the registry file

Abierto
#38 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
javascript, node.js
Área
testing

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
JavaScript
Estrellas
0
Forks
0
Merge medio
7 h 28 min
PR fusionados (30 d)
10

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de codepacct/codepact-action

Todos los issues de codepacct/codepact-action

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.