Skip to content
This repository has been archived by the owner on Sep 2, 2020. It is now read-only.

Update graphql-js dependency and fix tests #129

Merged
merged 1 commit into from
Jul 21, 2017
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql-language-service-interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql-language-service-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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'],
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql-language-service-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
"prepublish": "node ../../resources/prepublish.js"
},
"dependencies": {
"graphql": "^0.10.1"
"graphql": "^0.10.5"
}
}
2 changes: 1 addition & 1 deletion packages/graphql-language-service-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}