Skip to content

Commit 0395e64

Browse files
committed
cleanup
1 parent f025e72 commit 0395e64

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/graphql-language-service-server/src/__tests__/MessageProcessor.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,9 @@ describe('project with simple config and graphql files', () => {
303303
character: 1,
304304
},
305305
});
306+
// lets remove the fragments file
306307
await project.deleteFile('fragments.graphql');
308+
// and add a fragments.ts file
307309
await project.addFile(
308310
'fragments.ts',
309311
'\n\n\nexport const fragment = gql`\n\n fragment T on Test { isTest }\n`',
@@ -318,15 +320,14 @@ describe('project with simple config and graphql files', () => {
318320
textDocument: { uri: project.uri('query.graphql') },
319321
position: { character: 26, line: 0 },
320322
});
321-
323+
// this one is really important
322324
expect(defsForTs[0].uri).toEqual(project.uri('fragments.ts'));
323325
expect(serializeRange(defsForTs[0].range)).toEqual({
324326
start: {
325327
line: 5,
326328
character: 2,
327329
},
328330
end: {
329-
// TODO! line is wrong, it expects 1 for some reason probably in the LanguageService here
330331
line: 5,
331332
character: 31,
332333
},
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
exports.default = require('../../../../graphiql/test/e2e-server.js');

0 commit comments

Comments
 (0)