prettier/tests/graphql_directives/__snapshots__/jsfmt.spec.js.snap

60 lines
1.7 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`directives.graphql 1`] = `
====================================options=====================================
parsers: ["graphql"]
printWidth: 80
| printWidth
=====================================input======================================
query MyQuery @directive(
arg: 5
) {
field
@skip(if: true) @nope
otherField
...fragmentSpread, @include(if: ["this isn't even a boolean", "wow, that's really odd",,,,,])
}
fragment YouCanHaveDirectivesHereToo on SomeType @yesReally(what: "yes") {
fields
... on AType @what(sup: "yo") @otherDirective { goodbye}
... @notEvenATypeHere(args: [1, 2, 3]) {
hello
}
thisFieldHasALotOfDirectives @thisIsthefirst @thisIsTheSecond @thisIsTheThird @thisIstheFourthWillBeTooLongForSure (and: "it has arguments as well")
}
query QueryWVars($x: String) @directive { hey }
=====================================output=====================================
query MyQuery @directive(arg: 5) {
field @skip(if: true) @nope
otherField
...fragmentSpread
@include(if: ["this isn't even a boolean", "wow, that's really odd"])
}
fragment YouCanHaveDirectivesHereToo on SomeType @yesReally(what: "yes") {
fields
... on AType @what(sup: "yo") @otherDirective {
goodbye
}
... @notEvenATypeHere(args: [1, 2, 3]) {
hello
}
thisFieldHasALotOfDirectives
@thisIsthefirst
@thisIsTheSecond
@thisIsTheThird
@thisIstheFourthWillBeTooLongForSure(and: "it has arguments as well")
}
query QueryWVars($x: String) @directive {
hey
}
================================================================================
`;