Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Sawyer Burnett committed Mar 15, 2024
1 parent 75283ff commit f7fa682
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/groq-builder/src/commands/deref.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ describe("deref", () => {
const qVariants = qVariantsRefs.deref();

it("should deref a single item", () => {
expectTypeOf<
InferResultType<typeof qCategory>
>().toEqualTypeOf<SanitySchema.Category | null>();
// 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<typeof qCategory>;
expectTypeOf<CategoryInferenceResult>().toEqualTypeOf<SanitySchema.Category | null>();
expect(qCategory.query).toMatchInlineSnapshot(
`"*[_type == "product"][0].categories[][0]->"`
);
Expand Down

0 comments on commit f7fa682

Please sign in to comment.