-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reviewed By: josephsavona Differential Revision: D35046903 fbshipit-source-id: e768787582330ce7fe3981241b7da209fc4d711f
- Loading branch information
1 parent
5955505
commit 928728a
Showing
4 changed files
with
139 additions
and
5 deletions.
There are no files selected for viewing
88 changes: 88 additions & 0 deletions
88
...compiler/tests/compile_relay_artifacts/fixtures/circular-inline-fragment.invalid.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
==================================== INPUT ==================================== | ||
# expected-to-throw | ||
|
||
fragment circularInlineFragmentF1 on User @inline { | ||
...circularInlineFragmentF2 | ||
} | ||
|
||
fragment circularInlineFragmentF2 on User @inline { | ||
...circularInlineFragmentF3 | ||
} | ||
|
||
fragment circularInlineFragmentF3 on User @inline { | ||
...circularInlineFragmentF1 | ||
} | ||
==================================== ERROR ==================================== | ||
✖︎ Found a circular reference from fragment 'circularInlineFragmentF1'. | ||
|
||
circular-inline-fragment.invalid.graphql:12:6 | ||
11 │ fragment circularInlineFragmentF3 on User @inline { | ||
12 │ ...circularInlineFragmentF1 | ||
│ ^^^^^^^^^^^^^^^^^^^^^^^^ | ||
13 │ } | ||
|
||
ℹ︎ spreading circularInlineFragmentF2 | ||
|
||
circular-inline-fragment.invalid.graphql:4:6 | ||
3 │ fragment circularInlineFragmentF1 on User @inline { | ||
4 │ ...circularInlineFragmentF2 | ||
│ ^^^^^^^^^^^^^^^^^^^^^^^^ | ||
5 │ } | ||
|
||
ℹ︎ spreading circularInlineFragmentF3 | ||
|
||
circular-inline-fragment.invalid.graphql:8:6 | ||
7 │ fragment circularInlineFragmentF2 on User @inline { | ||
8 │ ...circularInlineFragmentF3 | ||
│ ^^^^^^^^^^^^^^^^^^^^^^^^ | ||
9 │ } | ||
|
||
|
||
✖︎ Found a circular reference from fragment 'circularInlineFragmentF2'. | ||
|
||
circular-inline-fragment.invalid.graphql:4:6 | ||
3 │ fragment circularInlineFragmentF1 on User @inline { | ||
4 │ ...circularInlineFragmentF2 | ||
│ ^^^^^^^^^^^^^^^^^^^^^^^^ | ||
5 │ } | ||
|
||
ℹ︎ spreading circularInlineFragmentF3 | ||
|
||
circular-inline-fragment.invalid.graphql:8:6 | ||
7 │ fragment circularInlineFragmentF2 on User @inline { | ||
8 │ ...circularInlineFragmentF3 | ||
│ ^^^^^^^^^^^^^^^^^^^^^^^^ | ||
9 │ } | ||
|
||
ℹ︎ spreading circularInlineFragmentF1 | ||
|
||
circular-inline-fragment.invalid.graphql:12:6 | ||
11 │ fragment circularInlineFragmentF3 on User @inline { | ||
12 │ ...circularInlineFragmentF1 | ||
│ ^^^^^^^^^^^^^^^^^^^^^^^^ | ||
13 │ } | ||
|
||
|
||
✖︎ Found a circular reference from fragment 'circularInlineFragmentF3'. | ||
|
||
circular-inline-fragment.invalid.graphql:8:6 | ||
7 │ fragment circularInlineFragmentF2 on User @inline { | ||
8 │ ...circularInlineFragmentF3 | ||
│ ^^^^^^^^^^^^^^^^^^^^^^^^ | ||
9 │ } | ||
|
||
ℹ︎ spreading circularInlineFragmentF1 | ||
|
||
circular-inline-fragment.invalid.graphql:12:6 | ||
11 │ fragment circularInlineFragmentF3 on User @inline { | ||
12 │ ...circularInlineFragmentF1 | ||
│ ^^^^^^^^^^^^^^^^^^^^^^^^ | ||
13 │ } | ||
|
||
ℹ︎ spreading circularInlineFragmentF2 | ||
|
||
circular-inline-fragment.invalid.graphql:4:6 | ||
3 │ fragment circularInlineFragmentF1 on User @inline { | ||
4 │ ...circularInlineFragmentF2 | ||
│ ^^^^^^^^^^^^^^^^^^^^^^^^ | ||
5 │ } |
13 changes: 13 additions & 0 deletions
13
...-compiler/tests/compile_relay_artifacts/fixtures/circular-inline-fragment.invalid.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# expected-to-throw | ||
|
||
fragment circularInlineFragmentF1 on User @inline { | ||
...circularInlineFragmentF2 | ||
} | ||
|
||
fragment circularInlineFragmentF2 on User @inline { | ||
...circularInlineFragmentF3 | ||
} | ||
|
||
fragment circularInlineFragmentF3 on User @inline { | ||
...circularInlineFragmentF1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters