From 978e19c817445d4e8239a663725352a8df85eaf0 Mon Sep 17 00:00:00 2001 From: Elliot DeNolf Date: Fri, 15 Mar 2024 12:19:00 -0400 Subject: [PATCH] test: fix custom-graphql beforeAll --- test/custom-graphql/int.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/custom-graphql/int.spec.ts b/test/custom-graphql/int.spec.ts index 552aab0329..6536bf9816 100644 --- a/test/custom-graphql/int.spec.ts +++ b/test/custom-graphql/int.spec.ts @@ -1,14 +1,17 @@ +import type { Payload } from '../../packages/payload/src/index.js' + import { getPayload } from '../../packages/payload/src/index.js' import { NextRESTClient } from '../helpers/NextRESTClient.js' import { startMemoryDB } from '../startMemoryDB.js' import configPromise from './config.js' let restClient: NextRESTClient +let payload: Payload describe('Custom GraphQL', () => { beforeAll(async () => { const config = await startMemoryDB(configPromise) - const payload = await getPayload({ config }) + payload = await getPayload({ config }) restClient = new NextRESTClient(payload.config) })