From 6213940eeac5cb33d006e5329a3b56088daa19f3 Mon Sep 17 00:00:00 2001 From: Federico Jaramillo Martinez Date: Sun, 12 Jul 2026 20:14:40 +0200 Subject: [PATCH] test: tolerate build graph contention --- src/buildContents.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/buildContents.test.ts b/src/buildContents.test.ts index 2ce3a53..b59cd6e 100644 --- a/src/buildContents.test.ts +++ b/src/buildContents.test.ts @@ -9,7 +9,8 @@ import { describe, expect, it } from "vitest"; const repoRoot = resolve(dirname(fileURLToPath(import.meta.url)), ".."); describe("production build contents", () => { - it("keeps test-support modules out of the TypeScript build graph", () => { + // Constructing the full compiler graph can exceed Vitest's default timeout under parallel-suite CPU contention. + it("keeps test-support modules out of the TypeScript build graph", { timeout: 15_000 }, () => { const buildConfig = readBuildConfig(); const program = ts.createProgram({ rootNames: buildConfig.fileNames, options: buildConfig.options }); const projectSources = program.getSourceFiles()