Skip to content

Commit

Permalink
improve: update all deps to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed Jun 18, 2024
1 parent 927e14e commit ba3756f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/layers/5_client/client.document.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down

0 comments on commit ba3756f

Please sign in to comment.