Skip to content

Add validation test for variables use on directives#9581

Open
michaelstaib wants to merge 1 commit into
mainfrom
mst/validation-test
Open

Add validation test for variables use on directives#9581
michaelstaib wants to merge 1 commit into
mainfrom
mst/validation-test

Conversation

@michaelstaib
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 21, 2026 07:44
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a regression test to the GraphQL validation test suite to ensure the NoUnusedVariables rule treats variables referenced by directives inside fragments as “used”.

Changes:

  • Add a new NoUnusedVariablesRuleTests test case where $v is used by @include(if: $v) inside a fragment spread from the operation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants