From da0e6134f2c998b2b68278b96dd0daae0a676b36 Mon Sep 17 00:00:00 2001 From: "MK (fengmk2)" Date: Fri, 16 Oct 2026 12:14:24 +0800 Subject: [PATCH] test: allow time for the Playwright type check on slow runners The first full TypeScript check in exports-map.spec.ts takes up to about 3 s on the Alpine musl runner, and a slow runner pushes it past Vitest's 5 s default timeout. Co-Authored-By: Claude Opus 5.5 --- packages/cli/src/__tests__/exports-map.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/__tests__/exports-map.spec.ts b/packages/cli/src/__tests__/exports-map.spec.ts index a48aa0e0be..3f4669019a 100644 --- a/packages/cli/src/__tests__/exports-map.spec.ts +++ b/packages/cli/src/__tests__/exports-map.spec.ts @@ -59,6 +59,8 @@ function typeDiagnostics(source: string, separator: string = path.sep): string[] } describe('package.json exports map', () => { + // The first full type check in this file takes up to about 3 s on the Alpine musl + // runner, so a slow runner pushes it past Vitest's 5 s default. it('checks Playwright options with only declared dependencies available', () => { const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'vite-plus-provider-types-')); try { @@ -110,7 +112,7 @@ alias({ contextOptions: { reducedMotion: 'bogus' } }); } finally { fs.rmSync(directory, { recursive: true, force: true }); } - }); + }, 15_000); it('provides the bundled Vitest Vite peer without relying on project dependencies', () => { const pkg = JSON.parse(fs.readFileSync(cliPkgJsonPath, 'utf8'));