Skip to content

Commit 33cb7b9

Browse files
authored
Improve directive tests (graphql#3775)
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.
1 parent aa573e8 commit 33cb7b9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/validation/__tests__/KnownDirectivesRule-test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,9 @@ describe('Validate: Known directives', () => {
356356
query: MyQuery
357357
}
358358
359+
directive @myDirective(arg:String) on ARGUMENT_DEFINITION
360+
directive @myDirective2(arg:String @myDirective) on FIELD
361+
359362
extend schema @onSchema
360363
`,
361364
schemaWithSDLDirectives,

0 commit comments

Comments
 (0)