diff --git a/__tests__/integration/query-typings.test.ts b/__tests__/integration/query-typings.test.ts index b728e665..b847b6ff 100644 --- a/__tests__/integration/query-typings.test.ts +++ b/__tests__/integration/query-typings.test.ts @@ -72,5 +72,10 @@ describe.each` const result = (await client.query(query)).data; expect(result).toEqual("hello"); + + // And make sure that the opposite is not possible + const query2 = fql`"hello"`; + // @ts-expect-error Argument of type 'Query' is not assignable to parameter of type 'Query'. + await client.query(query2); }); });