mirror of
https://github.com/nexu-io/open-design.git
synced 2026-10-27 09:51:12 +01:00
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.
15 lines
554 B
TypeScript
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,
|
|
},
|
|
});
|