Skip to content

polish(introspection): cover __Type.description on wrapping types - #4844

Open
vrana055 wants to merge 1 commit into
graphql:17.x.xfrom
vrana055:test/introspection-description-coverage
Open

polish(introspection): cover __Type.description on wrapping types#4844
vrana055 wants to merge 1 commit into
graphql:17.x.xfrom
vrana055:test/introspection-description-coverage

Conversation

@vrana055

@vrana055 vrana055 commented Aug 8, 2026

Copy link
Copy Markdown

Adds a test asserting __Type.description resolves to null for LIST and NON_NULL wrapping types, which have no description of their own, while ofType.description still resolves. getIntrospectionQuery() never hit this branch: it asks for description only on named types and for kind/name on ofType.

This was the last uncovered branch in the resolver, so the node:coverage ignore pragma and its FIXME are removed. Coverage stays at 100% without them.

@linux-foundation-easycla

linux-foundation-easycla Bot commented Aug 8, 2026

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: vrana055 / name: Vibhanshu (59988e2)

@vercel

vercel Bot commented Aug 8, 2026

Copy link
Copy Markdown

@vrana055 is attempting to deploy a commit to the The GraphQL Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@vrana055 vrana055 changed the title test(introspection): cover __Type.description on wrapping types polish(introspection): cover __Type.description on wrapping types Aug 8, 2026
Adds a test asserting __Type.description resolves to null for LIST and
NON_NULL wrapping types, which have no description of their own, while
ofType.description still resolves. getIntrospectionQuery() never hit this
branch: it asks for description only on named types and for kind/name on
ofType.

This was the last uncovered branch in the resolver, so the
`node:coverage ignore` pragma and its FIXME are removed. Coverage stays at
100% without them.
@vrana055
vrana055 force-pushed the test/introspection-description-coverage branch from 59988e2 to 2dfd614 Compare August 8, 2026 05:52
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.

1 participant