getsentry / getsentry/sentry-javascript

cloudflare: Two uncovered spots

Abierto
#24,041 1 comentario 0 reacciones 0 asignados Ver en GitHub
Cloudflare Workers javascript Tests
Lenguaje dominante
TypeScript
Estrellas
8.7k
Forks
1.8k
Merge medio
1 d 17 h
PR fusionados (30 d)
523

Descripción

* `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".

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Start by reading src/executionContext.ts and src/withSentry.ts, then review the coverage report, especially the C2 branch in withSentry.ts. Add unit tests for the uncovered statements and branches in both files, with executionContext.ts treated as the smaller task. Done means both files have tests covering the identified gaps.

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

Evaluación

Stack tecnológico
typescript
Área
cloud, testing
Tipo de issue
Nueva funcionalidad
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Activo
Claridad
Bastante claro
Aptitud para principiantes
70/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.