Add a test for notification endpoint event type filters

Aperta Adatta ai principianti
#481 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@odinakaikpakingsley-alt ci sta già lavorando.

Dal 20/11/2026.

  • #522 di @RiccardoBifulco — chiusa senza merge

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
74/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
postgresql, typescript
Ambito
backend, testing

Direzione di ricerca

Inizia individuando il filtro esistente del tipo di evento degli endpoint di notifica e il test che attualmente lo verifica; l’issue non indica nessuno dei due file. Aggiungi test per endpoint con una lista eventTypes vuota, un tipo corrispondente e un tipo non corrispondente. Poi esegui il test pertinente e npm test. Il lavoro è completato quando tutti e tre i casi sono testati; l’issue non specifica i risultati attesi per ciascun caso.

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

Descrizione

good first issue

Summary

Endpoints are matched to events by their eventTypes list. The empty list,
a wildcard and a mismatching type behave differently, and only one of those
is covered.

Acceptance criteria

  • Test an endpoint with an empty list, one matching type and one non-matching type.

Getting started

Fork this repository, clone your fork, and add this repo as upstream:

git clone https://github.com/<your-username>/streamgive-backend.git
cd streamgive-backend
git remote add upstream https://github.com/StreamGive/streamgive-backend.git

Create a branch for this issue:

git checkout -b test/endpoint-event-filter

Suggested commit message:

test(notifications): cover endpoint event type filters

Run npm run lint, npm run typecheck, and npm test before pushing, then
open a pull request from your fork against main and link this issue. See
the contributing guide for the full contribution guide.

Lingua principale
TypeScript
Stelle
6
Fork
67
Merge medio
9h 2m
PR unite (30g)
29

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 StreamGive/streamgive-backend

Tutte le issue di StreamGive/streamgive-backend

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.