Skip to content

Commit

Permalink
chore(gatsby-source-graphql): Use gatsby's graphql package (#17052)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprobst authored and sidharthachatterjee committed Aug 24, 2019
1 parent 2d3bcb3 commit 038bab8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/gatsby-source-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"@babel/runtime": "^7.5.5",
"apollo-link": "1.2.12",
"apollo-link-http": "^1.5.15",
"graphql": "^14.5.3",
"graphql-tools": "^3.1.1",
"invariant": "^2.2.4",
"node-fetch": "^1.7.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/gatsby-source-graphql/src/__tests__/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ jest.mock(`graphql-tools`, () => {
RenameTypes: jest.fn(),
}
})
jest.mock(`graphql`, () => {
const graphql = jest.requireActual(`graphql`)
jest.mock(`gatsby/graphql`, () => {
const graphql = jest.requireActual(`gatsby/graphql`)
return {
...graphql,
buildSchema: jest.fn(),
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-source-graphql/src/gatsby-node.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const uuidv4 = require(`uuid/v4`)
const { buildSchema, printSchema } = require(`graphql`)
const { buildSchema, printSchema } = require(`gatsby/graphql`)
const {
makeRemoteExecutableSchema,
transformSchema,
Expand Down

0 comments on commit 038bab8

Please sign in to comment.