getsentry / getsentry/sentry-javascript
cloudflare: Two uncovered spots
- Lingua principale
- TypeScript
- Stelle
- 8.7k
- Fork
- 1.8k
- Merge medio
- 1g 17h
- PR unite (30g)
- 523
Descrizione
* `src/executionContext.ts`: 0% statements, 0% branches.
* `src/withSentry.ts`: 33% branch coverage (see C2).
**Work item.** Add unit tests for both. `executionContext.ts` should be cheap.
**Prior art ***(related history only)*. Three open issues cover Cloudflare test infrastructure but not these two files: [#22523]() "Add tests with @cloudflare/vitest-pool-workers", [#23610]() "Create E2E tests that use real Cloudflare Workers", and [#20874]() "Create canary tests for Cloudflare E2E and integration tests".
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia leggendo src/executionContext.ts e src/withSentry.ts, poi esamina il report di coverage, in particolare il ramo C2 in withSentry.ts. Aggiungi test unitari per le istruzioni e i rami non coperti in entrambi i file, considerando executionContext.ts come l'attività più piccola. Il lavoro è completato quando entrambi i file hanno test che coprono le lacune individuate.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- cloud, testing
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Attiva
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 70/100