Skip to content

test: expand test suite for GraphQLResolveInfo in resolve functions#4698

Open
tommyhgunz14 wants to merge 1 commit intographql:16.x.xfrom
tommyhgunz14:test/expand-resolve-info-suite
Open

test: expand test suite for GraphQLResolveInfo in resolve functions#4698
tommyhgunz14 wants to merge 1 commit intographql:16.x.xfrom
tommyhgunz14:test/expand-resolve-info-suite

Conversation

@tommyhgunz14
Copy link
Copy Markdown

Closes #351

Adds comprehensive tests for the GraphQLResolveInfo parameter across all three functions that receive it:

  • Field resolvers: tests for nested fields, NonNull/List return type wrappers, fieldNodes with aliases and arguments, fragments, path for deeply nested fields, and variableValues/operation info
  • resolveType: tests that interface and union resolveType callbacks receive correct fieldName, fieldNodes, returnType, and parentType
  • isTypeOf: tests that isTypeOf receives correct resolve info

Previously, only rootValue was tested from GraphQLResolveInfo.

Closes graphql#351

Adds comprehensive tests for the GraphQLResolveInfo parameter
across all three functions that receive it:

- Field resolvers: tests for nested fields, NonNull/List return
  type wrappers, fieldNodes with aliases and arguments, fragments,
  path for deeply nested fields, and variableValues/operation info
- resolveType: tests that interface and union resolveType callbacks
  receive correct fieldName, fieldNodes, returnType, and parentType
- isTypeOf: tests that isTypeOf receives correct resolve info

Previously, only rootValue was tested from GraphQLResolveInfo.
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented Apr 28, 2026

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

  • ✅ login: tommyhgunz14 / name: tommyhgunz14 (b7936cb)

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 28, 2026

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

A member of the Team first needs to authorize it.

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.

Expand test suite for resolve data

1 participant