Skip to content

Commit dfec4ae

Browse files
committed
upd
1 parent fc6dfb3 commit dfec4ae

File tree

1 file changed

+0
-64
lines changed

1 file changed

+0
-64
lines changed

packages/plugin/src/rules/alphabetize/snapshot.md

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,70 +1031,6 @@ exports[`alphabetize > invalid > should sort definitions 1`] = `
10311031
59 | # END
10321032
`;
10331033

1034-
exports[`alphabetize > invalid > should sort selection set 1`] = `
1035-
#### ⌨️ Code
1036-
1037-
1 | {
1038-
2 | zz
1039-
3 | updatedAt
1040-
4 | createdAt {
1041-
5 | __typename
1042-
6 | }
1043-
7 | aa
1044-
8 | user {
1045-
9 | id
1046-
10 | }
1047-
11 | aab {
1048-
12 | id
1049-
13 | }
1050-
14 | }
1051-
1052-
#### ⚙️ Options
1053-
1054-
{
1055-
"selections": [
1056-
"OperationDefinition"
1057-
],
1058-
"groups": [
1059-
"id",
1060-
"*",
1061-
"updatedAt",
1062-
"{"
1063-
]
1064-
}
1065-
1066-
#### ❌ Error 1/2
1067-
1068-
6 | }
1069-
> 7 | aa
1070-
| ^^ field "aa" should be before field "createdAt"
1071-
8 | user {
1072-
1073-
#### ❌ Error 2/2
1074-
1075-
10 | }
1076-
> 11 | aab {
1077-
| ^^^ field "aab" should be before field "user"
1078-
12 | id
1079-
1080-
#### 🔧 Autofix output
1081-
1082-
1 | {
1083-
2 | aa
1084-
3 | zz
1085-
4 | updatedAt
1086-
5 | aab {
1087-
6 | id
1088-
7 | }
1089-
8 | createdAt {
1090-
9 | __typename
1091-
10 | }
1092-
11 | user {
1093-
12 | id
1094-
13 | }
1095-
14 | }
1096-
`;
1097-
10981034
exports[`alphabetize > invalid > should sort selection set at the end 1`] = `
10991035
#### ⌨️ Code
11001036

0 commit comments

Comments
 (0)