We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30aae6c commit cf4629dCopy full SHA for cf4629d
1 file changed
src/language/__tests__/printer-test.ts
@@ -122,6 +122,16 @@ describe('Printer: Query document', () => {
122
`);
123
});
124
125
+ it('Experimental: prints directives on directives', () => {
126
+ const queryASTWithVariableDirective = parse(
127
+ 'directive @foo @bar on FIELD_DEFINITION',
128
+ { experimentalDirectivesOnDirectiveDefinitions: true },
129
+ );
130
+ expect(print(queryASTWithVariableDirective)).to.equal(dedent`
131
+ directive @foo @bar on FIELD_DEFINITION
132
+ `);
133
+ });
134
+
135
it('Legacy: correctly prints fragment defined variables', () => {
136
const fragmentWithVariable = parse(
137
`
0 commit comments