Files
open-design/tools/pack/vitest.config.ts
T
PerishFireandGitHub dceac12f70 test(tools-pack): give packaging suites a realistic timeout (#6215)
tools/pack had no vitest config, so its suites ran on vitest's 5s default.
That package shells out to real packaging tools — 7z archive and extract,
pnpm pack, installer assembly — against temp directories, so 5s is close
enough to their actual cost that runner speed alone decides pass/fail.

The Windows launcher payload archive test failed merge-queue CI at 5007ms
while passing the same tree on the pull-request run and locally.

Add a package vitest config with testTimeout 20_000, matching apps/daemon,
which is subprocess-heavy for the same reason. The include pattern matches
the 36 existing suites exactly; test counts are unchanged.
2026-08-03 03:12:16 +00:00

15 lines
554 B
TypeScript

import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
environment: "node",
include: ["tests/**/*.test.ts"],
// These suites shell out to real packaging tools — 7z archive/extract,
// pnpm pack, installer assembly — against temp directories. Vitest's 5s
// default is close enough to their real cost that runner speed alone
// decides pass/fail: the Windows launcher payload archive test failed CI
// at 5007ms while passing locally and on faster runners.
testTimeout: 20_000,
},
});