Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions e2e/1-basic-schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,6 @@ type CustomScalarTest_Type {

# InputTest
input InputTest_Input {
field1: String!
field2: InputTest_SubType!
}
type InputTest_SubType {
field: String!
}

Expand Down
8 changes: 3 additions & 5 deletions e2e/index.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,16 +201,14 @@ describe('GraphQL features test', () => {
it('input', async () => {
const InputFactory = defineInputTest_InputFactory({
defaultFields: {
field1: 'field1',
field2: { field: 'field' },
field: 'field',
},
});
const input = await InputFactory.build();
expect(input).toStrictEqual({
field1: 'field1',
field2: { field: 'field' },
field: 'field',
});
expectTypeOf(input).toEqualTypeOf<{ field1: string; field2: { field: string } }>();
expectTypeOf(input).toEqualTypeOf<{ field: string }>();
});
});

Expand Down