Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Three repositories have no unit tests (notification-outbox, notification-delivery-log, nip05-verification)

Abierto
#905 0 comentarios 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
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
72/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript
Área
database, testing

Línea de trabajo

Start with the three named repository files and compare their patterns with the existing user, invoice, event, and invite-code repository specs. Then inspect the notification-outbox service spec to understand its current stubs. Add unit coverage for the listed SQL behavior and state transitions; done when each repository has tests for the specified cases, including admin filters and delivery-log outcomes.

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

Descripción

Gap

Three repositories have no unit tests — no spec file imports them:

  • src/repositories/notification-outbox-repository.ts (162 lines)
  • src/repositories/nip05-verification-repository.ts (140 lines)
  • src/repositories/notification-delivery-log-repository.ts (96 lines)

Note the trap: test/unit/services/notification-outbox-service.spec.ts exists, but it stubs the repository (claimBatch, markDelivered, markFailed are all sinon stubs) — so the 162 lines of actual SQL in the repository are untested. The user, invoice, event, and invite-code repositories all have specs; these three don't.

How measured

Import graph over the suite: 175 spec files vs 325 src/**/*.ts files — zero spec files reference these three modules (the service spec references the repository only as a stubbed interface).

What's worth covering

  • Outbox claimBatch semantics: batch claiming without double-delivery across workers
  • markDelivered / markFailed state transitions and failure-count accounting
  • nip05-verification-repository.listForAdmin filters (domain, verified, stale, minFailures, pagination) — new in #895 and already serving the admin API untested
  • Delivery-log writes: what gets recorded on success vs failure
Lenguaje dominante
TypeScript
Estrellas
829
Forks
234
Merge medio
18 h 18 min
PR fusionados (30 d)
69

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 cameri/nostream

Todos los issues de cameri/nostream

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.