diff --git a/package.json b/package.json index b11c2263..49b40238 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "dependencies": { "babel-polyfill": "6.16.0", "fb-watchman": "^2.0.0", - "graphql": "^0.10.1", + "graphql": "^0.10.5", "graphql-language-service-config": "0.0.18", "graphql-language-service-interface": "0.0.22", "graphql-language-service-parser": "0.0.16", diff --git a/packages/graphql-language-service-interface/package.json b/packages/graphql-language-service-interface/package.json index e62bd02e..1ca0fdba 100644 --- a/packages/graphql-language-service-interface/package.json +++ b/packages/graphql-language-service-interface/package.json @@ -26,7 +26,7 @@ "prepublish": "node ../../resources/prepublish.js" }, "dependencies": { - "graphql": "^0.10.1", + "graphql": "^0.10.5", "graphql-language-service-config": "0.0.18", "graphql-language-service-parser": "0.0.16", "graphql-language-service-types": "0.0.22", diff --git a/packages/graphql-language-service-server/package.json b/packages/graphql-language-service-server/package.json index 3489acf6..612aa2b7 100644 --- a/packages/graphql-language-service-server/package.json +++ b/packages/graphql-language-service-server/package.json @@ -27,7 +27,7 @@ }, "dependencies": { "fb-watchman": "^2.0.0", - "graphql": "^0.10.1", + "graphql": "^0.10.5", "graphql-language-service-config": "0.0.18", "graphql-language-service-interface": "0.0.22", "graphql-language-service-types": "0.0.22", diff --git a/packages/graphql-language-service-server/src/__tests__/GraphQLCache-test.js b/packages/graphql-language-service-server/src/__tests__/GraphQLCache-test.js index d991e25d..b25d095b 100644 --- a/packages/graphql-language-service-server/src/__tests__/GraphQLCache-test.js +++ b/packages/graphql-language-service-server/src/__tests__/GraphQLCache-test.js @@ -18,6 +18,12 @@ import {GraphQLCache} from '../GraphQLCache'; import {getQueryAndRange} from '../MessageProcessor'; import MockWatchmanClient from '../__mocks__/MockWatchmanClient'; +function wihtoutASTNode(definition: object) { + const result = {...definition}; + delete result.astNode; + return result; +} + describe('GraphQLCache', () => { let cache; let config; @@ -46,7 +52,9 @@ describe('GraphQLCache', () => { it('extend the schema with appropriate custom directive', async () => { const schemaPath = config.getSchemaPath('testWithCustomDirectives'); const schema = await cache.getSchema(schemaPath); - expect(schema.getDirective('customDirective')).to.deep.equal({ + expect( + wihtoutASTNode(schema.getDirective('customDirective')), + ).to.deep.equal({ args: [], description: '', locations: ['FRAGMENT_SPREAD'], diff --git a/packages/graphql-language-service-types/package.json b/packages/graphql-language-service-types/package.json index 4609eafa..64aa01cd 100644 --- a/packages/graphql-language-service-types/package.json +++ b/packages/graphql-language-service-types/package.json @@ -26,6 +26,6 @@ "prepublish": "node ../../resources/prepublish.js" }, "dependencies": { - "graphql": "^0.10.1" + "graphql": "^0.10.5" } } diff --git a/packages/graphql-language-service-utils/package.json b/packages/graphql-language-service-utils/package.json index e5c341e4..beb1b427 100644 --- a/packages/graphql-language-service-utils/package.json +++ b/packages/graphql-language-service-utils/package.json @@ -26,7 +26,7 @@ "prepublish": "node ../../resources/prepublish.js" }, "dependencies": { - "graphql": "^0.10.1", + "graphql": "^0.10.5", "graphql-language-service-types": "0.0.22" } }