getsentry / getsentry/sentry-javascript

cloudflare: Two uncovered spots

Open
#24,041 1 comment 0 reactions 0 assignees View on GitHub
Cloudflare Workers javascript Tests
Dominant language
TypeScript
Stars
8.7k
Forks
1.8k
Avg merge
1d 17h
Merged PRs (30d)
523

Description

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

Contributor guide

Open the contributing guide

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cloud, testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
70/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.