Skip to content

Commit 97c0b2d

Browse files
committed
variable type hover test
1 parent b08cebc commit 97c0b2d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/graphql-language-service/src/interface/__tests__/getHoverInformation-test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,14 @@ describe('getHoverInformation', () => {
101101
expect(actual).toEqual('Query.parameterizedField(id: String!)');
102102
});
103103

104+
it('provides variable type information', () => {
105+
const actual = testHover(
106+
'query($who: String!) { parameterizedField(id: $who) { testField } }',
107+
new Position(0, 48),
108+
);
109+
expect(actual).toEqual('String!');
110+
});
111+
104112
it('provides directive information', () => {
105113
const actual = testHover(
106114
'query { thing { testField @skip(if:true) } }',

0 commit comments

Comments
 (0)