From 3c9f8061e38dde325255dba399b87c19b5447e70 Mon Sep 17 00:00:00 2001 From: Trevor Scheer Date: Wed, 8 Jun 2022 09:13:11 -0700 Subject: [PATCH] Add missing test fixture --- .../client/__tests__/fixtures/schema.graphql | 23 +++++++++++++++++++ .../client/__tests__/generate.test.ts | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 packages/apollo/src/commands/client/__tests__/fixtures/schema.graphql diff --git a/packages/apollo/src/commands/client/__tests__/fixtures/schema.graphql b/packages/apollo/src/commands/client/__tests__/fixtures/schema.graphql new file mode 100644 index 0000000000..40f01070a8 --- /dev/null +++ b/packages/apollo/src/commands/client/__tests__/fixtures/schema.graphql @@ -0,0 +1,23 @@ +type Query { + hello: String! + serverSideField: ServerField! + someEnum: SomeEnum! +} + +type ServerField { + serverData: String! +} + +type RemovedField { + id: ID! + name: RemovedType +} + +type RemovedType { + fieldName: String +} + +enum SomeEnum { + foo + bar +} diff --git a/packages/apollo/src/commands/client/__tests__/generate.test.ts b/packages/apollo/src/commands/client/__tests__/generate.test.ts index 7f829db1e6..c643946b72 100644 --- a/packages/apollo/src/commands/client/__tests__/generate.test.ts +++ b/packages/apollo/src/commands/client/__tests__/generate.test.ts @@ -32,7 +32,7 @@ const { clientSideOnlySchema, clientSideOnlyQuery, } = resolveFiles({ - graphQLSchema: "../../service/__tests__/fixtures/schema.graphql", + graphQLSchema: "./fixtures/schema.graphql", simpleQuery: "./fixtures/simpleQuery.graphql", otherQuery: "./fixtures/otherQuery.graphql", queryWithFragments: "./fixtures/queryWithFragments.graphql",