From f7fa6823365b9745c238bcfa1dc8e89a75b55f98 Mon Sep 17 00:00:00 2001 From: Sawyer Burnett Date: Fri, 15 Mar 2024 14:38:59 -0700 Subject: [PATCH] add comments --- packages/groq-builder/src/commands/deref.test.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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]->"` );