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

Static mirroring worker (417 lines) has no unit tests

Abierto
#904 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
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
72/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript
Área
backend, testing

Línea de trabajo

Start with src/app/static-mirroring-worker.ts and the existing test/unit/app/relay-monitor-worker.spec.ts to understand the worker's dependencies and test conventions. Add unit coverage for reconnect state and accounting, heartbeat fields, and subscription cleanup on config change or shutdown. Run the relevant unit spec; done means these behaviors have tests that pass.

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

Descripción

Gap

src/app/static-mirroring-worker.ts (417 lines) — the worker that mirrors relay events to configured upstream relays — has no unit tests. No spec file in the suite references it, directly or otherwise.

This is a core data path: connection lifecycle, subscription management, event relaying, reconnection. The relay-monitor worker does have a spec (test/unit/app/relay-monitor-worker.spec.ts), so again the gap is specific, not systemic.

How measured

Import graph over the suite: 175 spec files vs 325 src/**/*.ts files — zero references to this module.

What's worth covering

  • Reconnect behavior: backoff, reconnectCount accounting, connectionState transitions (connecting/open/closed)
  • The ops heartbeat publishing added recently — lastError/lastEventAt/reconnectCount correctness (the relay-monitor's keepalive had a state-clobbering bug of exactly this shape; this worker's keepalive republishes full state, but nothing pins that)
  • Subscription lifecycle: what happens on config change / shutdown (the interval cleanup)
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.