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

141 lines
2.9 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`expressions.js 1`] = `
// We currently don't support expressions in GraphQL template literals so these templates
// should not change.
graphql(schema, \`
query allPartsByManufacturerName($name: String!) {
allParts(filter:{manufacturer: {name: $name}}) {
... PartAll
}}
\${fragments.all}
\`)
const veryLongVariableNameToMakeTheLineBreak = graphql(schema, \`
query allPartsByManufacturerName($name: String!) {
allParts(filter:{manufacturer: {name: $name}}) {
... PartAll
}}
\${fragments.all}
\`)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// We currently don't support expressions in GraphQL template literals so these templates
// should not change.
graphql(
schema,
\`
query allPartsByManufacturerName($name: String!) {
allParts(filter:{manufacturer: {name: $name}}) {
... PartAll
}}
\${fragments.all}
\`
);
const veryLongVariableNameToMakeTheLineBreak = graphql(
schema,
\`
query allPartsByManufacturerName($name: String!) {
allParts(filter:{manufacturer: {name: $name}}) {
... PartAll
}}
\${fragments.all}
\`
);
`;
exports[`graphql.js 1`] = `
graphql(schema, \`
mutation MarkReadNotificationMutation(
$input
: MarkReadNotificationData!
)
{ markReadNotification(data: $input ) { notification {seenState} } }\`)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
graphql(
schema,
\`
mutation MarkReadNotificationMutation($input: MarkReadNotificationData!) {
markReadNotification(data: $input) {
notification {
seenState
}
}
}
\`
);
`;
exports[`graphql-tag.js 1`] = `
import gql from "graphql-tag";
const query = gql\`
{
user( id : 5 ) {
firstName
lastName
}
}
\`;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
import gql from "graphql-tag";
const query = gql\`
{
user(id: 5) {
firstName
lastName
}
}
\`;
`;
exports[`react-relay.js 1`] = `
const { graphql } = require("react-relay");
graphql\`
mutation MarkReadNotificationMutation(
$input
: MarkReadNotificationData!
)
{ markReadNotification(data: $input ) { notification {seenState} } }
\`;
graphql.experimental\`
mutation MarkReadNotificationMutation(
$input
: MarkReadNotificationData!
)
{ markReadNotification(data: $input ) { notification {seenState} } }
\`;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
const { graphql } = require("react-relay");
graphql\`
mutation MarkReadNotificationMutation($input: MarkReadNotificationData!) {
markReadNotification(data: $input) {
notification {
seenState
}
}
}
\`;
graphql.experimental\`
mutation MarkReadNotificationMutation($input: MarkReadNotificationData!) {
markReadNotification(data: $input) {
notification {
seenState
}
}
}
\`;
`;