From 9ff516a6e75dab6075245940c33399ee4709d8fb Mon Sep 17 00:00:00 2001 From: Trevor Scheer Date: Thu, 14 May 2026 12:05:05 -0700 Subject: [PATCH] Give `defaults to the built-in default query` test a 20s timeout Monaco's editor worker cold start takes longer under Vitest 4's `forks` pool, causing this test to time out at the default 9s in CI. --- packages/graphiql/src/GraphiQL.spec.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/graphiql/src/GraphiQL.spec.tsx b/packages/graphiql/src/GraphiQL.spec.tsx index 8980a1929c6..485e1de1ba6 100644 --- a/packages/graphiql/src/GraphiQL.spec.tsx +++ b/packages/graphiql/src/GraphiQL.spec.tsx @@ -167,6 +167,7 @@ describe('GraphiQL', () => { }); // schema describe('default query', () => { + // First test to boot Monaco's editor worker; cold start needs extra time under Vitest 4's forks pool. it('defaults to the built-in default query', async () => { const { container } = render(); @@ -177,7 +178,7 @@ describe('GraphiQL', () => { expect(queryEditor).toBeVisible(); expect(queryEditor!.textContent).toBe('# Welcome to GraphiQL'); }); - }); + }, 20000); it('accepts a custom default query', async () => { const { container } = render(