Skip to content

Commit 9970f59

Browse files
committed
split tests
1 parent d258e08 commit 9970f59

File tree

9 files changed

+76
-0
lines changed

9 files changed

+76
-0
lines changed

crates/biome_graphql_analyze/tests/specs/nursery/useConsistentGraphqlDescriptions/invalid.graphql renamed to crates/biome_graphql_analyze/tests/specs/nursery/useConsistentGraphqlDescriptions/block/invalid.graphql

File renamed without changes.

crates/biome_graphql_analyze/tests/specs/nursery/useConsistentGraphqlDescriptions/invalid.graphql.snap renamed to crates/biome_graphql_analyze/tests/specs/nursery/useConsistentGraphqlDescriptions/block/invalid.graphql.snap

File renamed without changes.

crates/biome_graphql_analyze/tests/specs/nursery/useConsistentGraphqlDescriptions/valid.graphql renamed to crates/biome_graphql_analyze/tests/specs/nursery/useConsistentGraphqlDescriptions/block/valid.graphql

File renamed without changes.

crates/biome_graphql_analyze/tests/specs/nursery/useConsistentGraphqlDescriptions/valid.graphql.snap renamed to crates/biome_graphql_analyze/tests/specs/nursery/useConsistentGraphqlDescriptions/block/valid.graphql.snap

File renamed without changes.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
enum EnumValue {
2+
"""
3+
basic
4+
"""
5+
BASIC
6+
"""
7+
fluent
8+
"""
9+
FLUENT
10+
"""
11+
native
12+
"""
13+
NATIVE
14+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
source: crates/biome_graphql_analyze/tests/spec_tests.rs
3+
assertion_line: 83
4+
expression: invalid.graphql
5+
---
6+
# Input
7+
```graphql
8+
enum EnumValue {
9+
"""
10+
basic
11+
"""
12+
BASIC
13+
"""
14+
fluent
15+
"""
16+
FLUENT
17+
"""
18+
native
19+
"""
20+
NATIVE
21+
}
22+
23+
```
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "../../../../../../../packages/@biomejs/biome/configuration_schema.json",
3+
"linter": {
4+
"rules": {
5+
"nursery": {
6+
"useConsistentGraphqlDescriptions": {
7+
"level": "error",
8+
"options": {
9+
"style": "inline"
10+
}
11+
}
12+
}
13+
}
14+
}
15+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# should not generate diagnostics
2+
enum EnumValue {
3+
"basic"
4+
BASIC
5+
"fluent"
6+
FLUENT
7+
"native"
8+
NATIVE
9+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "../../../../../../../packages/@biomejs/biome/configuration_schema.json",
3+
"linter": {
4+
"rules": {
5+
"nursery": {
6+
"useConsistentGraphqlDescriptions": {
7+
"level": "error",
8+
"options": {
9+
"style": "inline"
10+
}
11+
}
12+
}
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)