tcef-notifications/test
vjrj a1ed206985 Fase 1b: cableado del matcher (ingesta polling, runner shadow/full, comparador)
- config: bloque matcher (MATCHER_MODE off/shadow/full, IRON_PASSWORD, audiencia,
  poll, batch) + validacion
- db: colecciones subscriptions/activefires/notifications_shadow/matcher_state +
  ensureMatcherIndexes (2dsphere en notifications_shadow para el dedupe 500m)
- matcher/context: MatchContext sobre Mongo real (candidatas geo $near 1000km +
  audiencia; dedupe geo $near 500m; lang del owner)
- matcher/ingest: polling de activefires por createdAt>checkpoint (Mongo 3.2 sin
  change streams), checkpoint persistido en matcher_state
- matcher/runner: loop shadow(->notifications_shadow)/full(->notifications),
  idempotente por dedupe+checkpoint
- matcher/compare: comparador de shadow (shadowOnly=spam, realOnly=faltantes,
  contentMismatches) — el gate antes del cutover
- index: arranca el matcher; fake-repo ampliado (upsert, sort, $gt/$lt)
- docs/env/README actualizados

73 tests en verde, typecheck y build OK.
2026-07-13 18:07:06 +02:00
..
compare.test.ts Fase 1b: cableado del matcher (ingesta polling, runner shadow/full, comparador) 2026-07-13 18:07:06 +02:00
config.test.ts Fase 1a: microservicio tcef-notifications (workers FCM v1 + email) 2026-07-13 00:10:29 +02:00
fake-repo.ts Fase 1b: cableado del matcher (ingesta polling, runner shadow/full, comparador) 2026-07-13 18:07:06 +02:00
handlers.test.ts Fase 1a: driver mongodb v3.7 (produccion es MongoDB 3.2) 2026-07-13 00:58:27 +02:00
helpers.ts Fase 1a: driver mongodb v3.7 (produccion es MongoDB 3.2) 2026-07-13 00:58:27 +02:00
mailer.test.ts Fase 1a: microservicio tcef-notifications (workers FCM v1 + email) 2026-07-13 00:10:29 +02:00
matcher-runner.test.ts Fase 1b: cableado del matcher (ingesta polling, runner shadow/full, comparador) 2026-07-13 18:07:06 +02:00
matcher.test.ts Fase 1b: nucleo del matcher geoespacial (caracterizado + testeado) 2026-07-13 17:58:43 +02:00
messages.test.ts Fase 1a: microservicio tcef-notifications (workers FCM v1 + email) 2026-07-13 00:10:29 +02:00
mode.test.ts Fase 1a: microservicio tcef-notifications (workers FCM v1 + email) 2026-07-13 00:10:29 +02:00
poller.test.ts Fase 1a: driver mongodb v3.7 (produccion es MongoDB 3.2) 2026-07-13 00:58:27 +02:00
queue.test.ts Fase 1a: fix jobId (BullMQ rechaza ':' en custom job id) 2026-07-13 08:40:38 +02:00