From 8c89a6077688b9f46033526239f24cf2eebd2ba9 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 25 Sep 2026 13:18:22 +0200 Subject: [PATCH] test: give the host-backed tests upstream's 30 s timeout The first CI run on main timed out one test on EmDash 0.39.0 and a dozen in the informational job. They run the plugin inside workerd through the test host; the heaviest take about 2.5 s on a fast laptop, and a shared CI runner pushed them past vitest's 5 s default. The same commit's tree had passed on the pull request. Upstream's plugin-test suite uses 30 s for the same reason. --- packages/analytics/vitest.config.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/analytics/vitest.config.ts b/packages/analytics/vitest.config.ts index 6c0855f..3342336 100644 --- a/packages/analytics/vitest.config.ts +++ b/packages/analytics/vitest.config.ts @@ -3,4 +3,12 @@ import { defineConfig } from "vitest/config"; export default defineConfig({ plugins: [emdashPluginTest()], + test: { + // Most tests run the plugin inside workerd through the test host. The + // heaviest take about 2.5 s on a fast laptop and passed vitest's 5 s + // default on shared CI runners. The same limits as upstream's own + // plugin-test suite. + testTimeout: 30_000, + hookTimeout: 30_000, + }, });