test: tolerate build graph contention

This commit is contained in:
Federico Jaramillo Martinez
2026-07-12 20:14:40 +02:00
parent 1db2ae5a9f
commit 6213940eea
+2 -1
View File
@@ -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()