fix(core): add all objects in resolver.of
to context.types
#44
Annotations
10 errors
Test:
packages/valibot/test/schema.spec.ts#L147
Error: Snapshot `should handle hidden field 2` mismatched
- Expected
+ Received
- "type Query {
- dog: Dog!
+ "type Dog {
+ name: String
}
- type Dog {
- name: String
+ type Query {
+ dog: Dog!
}"
❯ test/schema.spec.ts:147:30
|
Test:
packages/valibot/test/schema.spec.ts#L350
Error: Snapshot `should handle interfere 1` mismatched
- Expected
+ Received
- "type Query {
- orange: Orange!
- }
-
- type Orange implements Fruit {
+ "type Orange implements Fruit {
name: String!
color: String!
prize: Float!
}
interface Fruit {
name: String!
color: String!
prize: Float!
+ }
+
+ type Query {
+ orange: Orange!
}"
❯ test/schema.spec.ts:350:30
|
Test:
packages/valibot/test/schema.spec.ts#L484
Error: Snapshot `should avoid duplicate > should merge field from multiple resolver 1` mismatched
- Expected
+ Received
- "type Query {
- dog: Dog!
- }
-
- type Dog {
+ "type Dog {
name: String!
birthday: String!
age: Float!
greeting: String!
+ }
+
+ type Query {
+ dog: Dog!
}"
❯ test/schema.spec.ts:484:37
|
Test:
packages/valibot/test/schema.spec.ts#L535
Error: Snapshot `should avoid duplicate > should avoid duplicate object 1` mismatched
- Expected
+ Received
@@ -1,17 +1,17 @@
- "type Query {
+ "type Dog {
+ name: String!
+ birthday: String!
+ age: Float!
+ }
+
+ type Query {
dog: Dog
cat: Cat!
dogs: [Dog]!
mustDog: Dog!
mustDogs: [Dog!]!
- }
-
- type Dog {
- name: String!
- birthday: String!
- age: Float!
}
type Cat {
name: String!
birthday: String!
❯ test/schema.spec.ts:535:33
|
Test:
packages/valibot/test/schema.spec.ts#L584
Error: Snapshot `should avoid duplicate > should avoid duplicate object in pipe 1` mismatched
- Expected
+ Received
@@ -1,19 +1,19 @@
- "type Query {
- orange: Orange!
- apple: Apple!
- }
-
- type Orange {
+ "type Orange {
name: String!
color: String!
prize: Prize!
}
type Prize {
name: String!
value: Float!
+ }
+
+ type Query {
+ orange: Orange!
+ apple: Apple!
}
type Apple {
name: String!
color: String!
❯ test/schema.spec.ts:584:32
|
Test:
packages/valibot/test/schema.spec.ts#L644
Error: Snapshot `should avoid duplicate > should avoid duplicate object in interface 1` mismatched
- Expected
+ Received
@@ -1,11 +1,6 @@
- "type Query {
- orange: Orange!
- apple: Apple!
- }
-
- type Orange implements Fruit {
+ "type Orange implements Fruit {
name: String!
color: String!
prize: Prize!
}
@@ -16,10 +11,15 @@
}
type Prize {
name: String!
value: Float!
+ }
+
+ type Query {
+ orange: Orange!
+ apple: Apple!
}
type Apple implements Fruit {
name: String!
color: String!
❯ test/schema.spec.ts:644:32
|
Test:
packages/valibot/test/schema.spec.ts#L719
Error: Snapshot `should avoid duplicate > should avoid duplicate input 1` mismatched
- Expected
+ Received
@@ -1,16 +1,16 @@
- "type Query {
+ "type Dog {
+ name: String!
+ birthday: String!
+ age: Float!
+ }
+
+ type Query {
unwrap(name: String!, birthday: String!): Dog!
dog(data: DogInput!): Dog!
dogs(data: [DogInput!]!, required: [DogInput!]!, names: [String!]!): [Dog!]!
mustDog(data: DataInput!): Dog!
- }
-
- type Dog {
- name: String!
- birthday: String!
- age: Float!
}
input DogInput {
name: String!
birthday: String!
❯ test/schema.spec.ts:719:33
|
Test:
packages/yup/test/schema.spec.ts#L120
Error: Snapshot `YupWeaver > should handle hidden field 2` mismatched
- Expected
+ Received
- "type Query {
- dog: Dog
+ "type Dog {
+ name: String
}
- type Dog {
- name: String
+ type Query {
+ dog: Dog
}"
❯ test/schema.spec.ts:120:30
|
Test:
packages/yup/test/schema.spec.ts#L434
Error: Snapshot `YupWeaver > should avoid duplicate > should merge field from multiple resolver 1` mismatched
- Expected
+ Received
- "type Query {
- dog: Dog
- }
-
- type Dog {
+ "type Dog {
name: String!
birthday: String!
age: Float
greeting: String
+ }
+
+ type Query {
+ dog: Dog
}"
❯ test/schema.spec.ts:434:37
|
Test:
packages/yup/test/schema.spec.ts#L472
Error: Snapshot `YupWeaver > should avoid duplicate > should avoid duplicate object 1` mismatched
- Expected
+ Received
- "type Query {
+ "type Dog {
+ name: String!
+ birthday: String!
+ age: Float
+ }
+
+ type Query {
dog: Dog
dogs: [Dog]
mustDog: Dog!
mustDogs: [Dog!]
- }
-
- type Dog {
- name: String!
- birthday: String!
- age: Float
}"
❯ test/schema.spec.ts:472:33
|
Loading