Skip to content

Commit 77a4d83

Browse files
andimarekyaacovCR
authored andcommitted
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 d1963dd commit 77a4d83

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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)