getsentry / getsentry/sentry-javascript
cloudflare: Two uncovered spots
- 主要语言
- TypeScript
- 星标
- 8.7k
- 派生
- 1.8k
- 平均合并
- 1 天 17 小时
- 30 天内合并 PR
- 523
描述
* `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".
贡献指南
调研方向
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.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- cloud, testing
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 70/100