Skip to content

Commit

Permalink
Improve directive tests (#3775)
Browse files Browse the repository at this point in the history
Improving directive tests by adding a new example for directives used on
other directive arguments:

```graphql
          directive @myDirective(arg:String) on ARGUMENT_DEFINITION 
          directive @myDirective2(arg:String @myDirective) on FIELD 
```

As far as I could see that was not clearly documented through tests
before.
  • Loading branch information
andimarek authored Sep 26, 2024
1 parent aa573e8 commit 33cb7b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/validation/__tests__/KnownDirectivesRule-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,9 @@ describe('Validate: Known directives', () => {
query: MyQuery
}
directive @myDirective(arg:String) on ARGUMENT_DEFINITION
directive @myDirective2(arg:String @myDirective) on FIELD
extend schema @onSchema
`,
schemaWithSDLDirectives,
Expand Down

0 comments on commit 33cb7b9

Please sign in to comment.