Skip to content

test(server-utils): Remove graphql unit tests that replicated SDK async-context logic#22103

Merged
andreiborza merged 2 commits into
developfrom
ab/remove-graphql-unit-tests
Jul 8, 2026
Merged

test(server-utils): Remove graphql unit tests that replicated SDK async-context logic#22103
andreiborza merged 2 commits into
developfrom
ab/remove-graphql-unit-tests

Conversation

@andreiborza

@andreiborza andreiborza commented Jul 8, 2026

Copy link
Copy Markdown
Member

Removes the three graphql subscriber unit tests and their shared helper, which stubbed the SDK's async context strategy and a fake document to drive spans, replicating SDK internals in the test layer. Per the review thread in #21885, we rely on the integration tests instead.

The path is covered by the graphql-tracing-channel node integration suite. To avoid losing the useful unit-only assertions, this PR also adds validation-error status and ignoreTrivialResolveSpans coverage to that suite. The subscription-channel case is left as a possible follow-up.

Ref: #21885 (comment)

…nc-context logic

The suites stubbed the SDK's async context strategy via `setAsyncContextStrategy` and
a fake `DocumentNode` to drive spans, duplicating SDK internals in the test layer. The
graphql-tracing-channel node integration suite already covers the graphql v17 native
diagnostics-channel subscriber path end to end against the real library.

Co-Authored-By: Opus 4.8 <noreply@anthropic.com>
@andreiborza andreiborza requested a review from a team as a code owner July 8, 2026 15:29
@andreiborza andreiborza requested review from JPeer264 and mydea and removed request for a team July 8, 2026 15:29
…to the graphql-tracing-channel integration suite
@andreiborza andreiborza merged commit 96fd86e into develop Jul 8, 2026
412 of 418 checks passed
@andreiborza andreiborza deleted the ab/remove-graphql-unit-tests branch July 8, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants