From eaf31bc36c4d38bedc447052e82a2542c5749fe9 Mon Sep 17 00:00:00 2001 From: Steve Calvert Date: Wed, 21 Oct 2026 17:15:16 -0700 Subject: [PATCH] test: give the suite a CI-sized timeout Tests that run real builds and packed CLIs take 1-4s locally and exceed vitest's 5s default on shared CI runners. Main failed on Node 22 after #45 landed: a path-safety lifecycle test timed out while passing locally. --- vitest.config.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 vitest.config.ts diff --git a/vitest.config.ts b/vitest.config.ts new file mode 100644 index 0000000..58b94e3 --- /dev/null +++ b/vitest.config.ts @@ -0,0 +1,11 @@ +import { defineConfig } from "vitest/config"; + +export default defineConfig({ + test: { + // Many tests run real builds, validations and packed CLIs against temp + // projects. They take 1-4s locally, and the shared CI runners run the + // suite in parallel at a fraction of that speed, so vitest's 5s default + // fails tests that are slow, not broken. + testTimeout: 30_000, + }, +});