diff --git a/packages/groq-builder/src/commands/deref.test.ts b/packages/groq-builder/src/commands/deref.test.ts index 2488090..c4b2aa0 100644 --- a/packages/groq-builder/src/commands/deref.test.ts +++ b/packages/groq-builder/src/commands/deref.test.ts @@ -17,9 +17,10 @@ describe("deref", () => { const qVariants = qVariantsRefs.deref(); it("should deref a single item", () => { - expectTypeOf< - InferResultType - >().toEqualTypeOf(); + // I don't understand why this is now failing. + // switching to toMatchTypeOf seems to fix it, but that does not seem like the correct solution + type CategoryInferenceResult = InferResultType; + expectTypeOf().toEqualTypeOf(); expect(qCategory.query).toMatchInlineSnapshot( `"*[_type == "product"][0].categories[][0]->"` );