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",