Skip to content

Commit

Permalink
[test] Make green
Browse files Browse the repository at this point in the history
  • Loading branch information
alloy committed Jul 19, 2019
1 parent 496fc94 commit 025a41f
Show file tree
Hide file tree
Showing 13 changed files with 129 additions and 127 deletions.
Expand Up @@ -1471,7 +1471,7 @@ THROWN EXCEPTION:
ReaderCodeGenerator: Complex argument values (Lists or InputObjects with nested variables) are not supported.
Source: GraphQL request (3:17)
Source: GraphQL request:3:17
2: query TestQuery($date: String) {
3: items(filter: {date: $date}) {
^
Expand Down Expand Up @@ -3287,13 +3287,13 @@ THROWN EXCEPTION:
Error: Encountered 1 error(s):
- Invalid use of @connection_resolver, could not generate a default label that is unique. Specify a unique 'label' as a literal string.
Source: GraphQL request (20:25)
Source: GraphQL request:20:25
19: ... {
20: comments(first: 10) @connection_resolver(resolver: "FeedbackCommentsEdgesResolver") { #error: same default label
^
21: count
Source: GraphQL request (9:23)
Source: GraphQL request:9:23
8: fragment FeedbackComments_feedback on Feedback {
9: comments(first: 10) @connection_resolver(resolver: "FeedbackCommentsEdgesResolver") {
^
Expand Down Expand Up @@ -3334,13 +3334,13 @@ THROWN EXCEPTION:
Error: Encountered 1 error(s):
- Invalid use of @connection_resolver, the provided label is not unique. Specify a unique 'label' as a literal string.
Source: GraphQL request (20:89)
Source: GraphQL request:20:89
19: ... {
20: comments(first: 10) @connection_resolver(resolver: "FeedbackCommentsEdgesResolver", label: "comments") { #error: same label
^
21: count
Source: GraphQL request (9:87)
Source: GraphQL request:9:87
8: fragment FeedbackComments_feedback on Feedback {
9: comments(first: 10) @connection_resolver(resolver: "FeedbackCommentsEdgesResolver", label: "comments") {
^
Expand Down Expand Up @@ -3376,7 +3376,7 @@ THROWN EXCEPTION:
Error: Encountered 1 error(s):
- @connection_resolver fields must return a single value, not a list, found '[CommentsEdge]'
Source: GraphQL request (10:5)
Source: GraphQL request:10:5
9: comments(first: 10) {
10: edges @connection_resolver(resolver: "FeedbackCommentsEdgesResolver") { # error: plural
^
Expand All @@ -3403,7 +3403,7 @@ THROWN EXCEPTION:
Error: Encountered 1 error(s):
- The @connection_resolver direction is not supported on scalar fields, only fields returning an object/interface/union
Source: GraphQL request (9:6)
Source: GraphQL request:9:6
8: fragment FeedbackComments_feedback on Feedback {
9: id @connection_resolver(resolver: "FeedbackIDResolver") # error: scalar
^
Expand Down Expand Up @@ -4657,7 +4657,7 @@ Error: Encountered 2 error(s):
- Operation 'FeedbackQuery' references undefined variable(s):
- $commentsKey: String.
Source (derived): GraphQL request (25:26)
Source (derived): GraphQL request:25:26
24: key: "FeedbackFragment_comments"
25: dynamicKey_UNSTABLE: $commentsKey
^
Expand All @@ -4666,7 +4666,7 @@ Error: Encountered 2 error(s):
- Operation 'PaginationQuery' references undefined variable(s):
- $commentsKey: String.
Source (derived): GraphQL request (25:26)
Source (derived): GraphQL request:25:26
24: key: "FeedbackFragment_comments"
25: dynamicKey_UNSTABLE: $commentsKey
^
Expand Down Expand Up @@ -5899,31 +5899,31 @@ THROWN EXCEPTION:
Error: Found a circular reference from fragment 'Profile'.
Source (derived): GraphQL request (2:1)
Source (derived): GraphQL request:2:1
1: # expected-to-throw
2: fragment RefetchableFragment on Query @refetchable(queryName: "RefetchableFragmentQuery") @argumentDefinitions(id: {type: "ID!"}) {
^
3: node(id: $id) {
Source (derived): GraphQL request (2:1)
Source (derived): GraphQL request:2:1
1: # expected-to-throw
2: fragment RefetchableFragment on Query @refetchable(queryName: "RefetchableFragmentQuery") @argumentDefinitions(id: {type: "ID!"}) {
^
3: node(id: $id) {
Source: GraphQL request (7:7)
Source: GraphQL request:7:7
6: name
7: ...Profile @arguments(includeProfile: true)
^
8: }
Source: GraphQL request (21:9)
Source: GraphQL request:21:9
20: node {
21: ...Profile
^
22: }
Source: GraphQL request (21:9)
Source: GraphQL request:21:9
20: node {
21: ...Profile
^
Expand Down Expand Up @@ -6675,13 +6675,13 @@ THROWN EXCEPTION:
Error: Encountered 1 error(s):
- Unexpected directive: @defer. This directive can only be used on fields/fragments that are fetched from the server schema, but it is used inside a client-only selection.
Source (derived): GraphQL request (12:23)
Source (derived): GraphQL request:12:23
11: emailAddresses
12: ...DeferredFragment @defer(label: "DeferredFragmentLabel")
^
13: }
Source (derived): GraphQL request (12:3)
Source (derived): GraphQL request:12:3
11: emailAddresses
12: ...DeferredFragment @defer(label: "DeferredFragmentLabel")
^
Expand Down Expand Up @@ -7082,13 +7082,13 @@ THROWN EXCEPTION:
Error: Encountered 1 error(s):
- Cannot use @relay(mask: false) on fragment spreads for fragments with directives.
Source: GraphQL request (5:5)
Source: GraphQL request:5:5
4: me {
5: ...Profile @relay(mask: false)
^
6: }
Source: GraphQL request (9:26)
Source: GraphQL request:9:26
8:
9: fragment Profile on User @inline {
^
Expand Down Expand Up @@ -7482,7 +7482,7 @@ THROWN EXCEPTION:
Error: Encountered 1 error(s):
- Variables are not yet supported inside @inline fragments.
Source: GraphQL request (10:24)
Source: GraphQL request:10:24
9: fragment Profile on User @inline {
10: profilePicture(size: $pictureSize) {
^
Expand Down Expand Up @@ -7520,7 +7520,7 @@ THROWN EXCEPTION:
Error: Encountered 1 error(s):
- Variables are not yet supported inside @inline fragments.
Source: GraphQL request (17:24)
Source: GraphQL request:17:24
16: @inline
17: @argumentDefinitions(sizeArg: { type: "[Int]", defaultValue: [50] }) {
^
Expand Down Expand Up @@ -8329,13 +8329,13 @@ THROWN EXCEPTION:
Error: Encountered 1 error(s):
- Found conflicting @module selections: use a unique alias on the parent fields.
Source: GraphQL request (22:7)
Source: GraphQL request:22:7
21: ...MarkdownUserNameRenderer_name
22: @module(name: "BarMarkdownUserNameRenderer.react")
^
23: }
Source: GraphQL request (13:7)
Source: GraphQL request:13:7
12: ...MarkdownUserNameRenderer_name
13: @module(name: "FooMarkdownUserNameRenderer.react")
^
Expand Down Expand Up @@ -8531,13 +8531,13 @@ THROWN EXCEPTION:
Error: Encountered 1 error(s):
- Required argument 'capitalize: Boolean!' is missing on 'nameWithArgs' in 'TestQuery'.
Source: GraphQL request (5:7)
Source: GraphQL request:5:7
4: hometown{
5: nameWithArgs
^
6: }
Source: GraphQL request (2:1)
Source: GraphQL request:2:1
1: # expected-to-throw
2: query TestQuery {
^
Expand Down Expand Up @@ -9220,13 +9220,13 @@ THROWN EXCEPTION:
Error: Encountered 1 error(s):
- Found conflicting @module selections: use a unique alias on the parent fields.
Source: GraphQL request (25:7)
Source: GraphQL request:25:7
24: ...MarkdownUserNameRenderer_name
25: @module(name: "BarMarkdownUserNameRenderer.react")
^
26: }
Source: GraphQL request (13:7)
Source: GraphQL request:13:7
12: ...MarkdownUserNameRenderer_name
13: @module(name: "FooMarkdownUserNameRenderer.react")
^
Expand Down Expand Up @@ -15408,13 +15408,13 @@ THROWN EXCEPTION:
Error: Encountered 1 error(s):
- RelayMaskTransform: Cannot use @relay(mask: false) on fragment spread because the fragment definition uses @argumentDefinitions.
Source: GraphQL request (5:5)
Source: GraphQL request:5:5
4: me {
5: ...User_user @relay(mask: false)
^
6: }
Source: GraphQL request (10:24)
Source: GraphQL request:10:24
9: fragment User_user on User
10: @argumentDefinitions(isRelative: {type: "Boolean!", defaultValue: false}) {
^
Expand Down Expand Up @@ -15834,13 +15834,13 @@ THROWN EXCEPTION:
Error: RelayParser: Encountered 1 error(s):
- Variable @arguments values are only supported when the argument is defined with @argumentDefinitions. Check the definition of fragment 'ProfilePhoto'.
GraphQL request (16:36)
GraphQL request:16:36
15: __typename
16: ...ProfilePhoto @arguments(size: $size)
^
17: }
GraphQL request (19:1)
GraphQL request:19:1
18:
19: fragment ProfilePhoto on User {
^
Expand Down
Expand Up @@ -15,7 +15,9 @@ const RelayFindGraphQLTags = require('../RelayFindGraphQLTags');

describe('RelayFindGraphQLTags', () => {
function find(text, absPath: string = '/path/to/FindGraphQLTags.js') {
return RelayFindGraphQLTags.find(FindGraphQLTags.find, text, absPath);
return RelayFindGraphQLTags.find(FindGraphQLTags.find, text, absPath).map(
tag => tag.template,
);
}

describe('query parsing', () => {
Expand Down

0 comments on commit 025a41f

Please sign in to comment.