From ba3756f0fb89c27e4a9277a348c7c53952130fb4 Mon Sep 17 00:00:00 2001 From: Jason Kuhrt Date: Mon, 17 Jun 2024 20:13:49 -0400 Subject: [PATCH] improve: update all deps to latest --- src/layers/5_client/client.document.test.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/layers/5_client/client.document.test.ts b/src/layers/5_client/client.document.test.ts index 366bdf5bb..165577d73 100644 --- a/src/layers/5_client/client.document.test.ts +++ b/src/layers/5_client/client.document.test.ts @@ -13,6 +13,21 @@ describe(`document with two queries`, () => { bar: { query: { idNonNull: true } }, }) + graffle.extend(async ({ exchange }) => { + if (exchange.input.transport !== `http`) return exchange() + // @ts-expect-error Nextjs + exchange.input.request.next = { revalidate: 60, tags: [`menu`] } + return exchange({ + ...exchange.input, + request: { + ...exchange.input.request, + }, + }) + }).document({ + foo: { query: { id: true } }, + bar: { query: { idNonNull: true } }, + }) + test(`works`, async () => { const { run } = withTwo await expect(run(`foo`)).resolves.toEqual({ id: db.id1 })