From ace6501cabb00f97a1524b7e035ff37edecc90e3 Mon Sep 17 00:00:00 2001 From: Cristian Greco Date: Tue, 13 Oct 2026 10:44:17 +0100 Subject: [PATCH] Ignore Vitest teardown errors from late container logs --- vitest.config.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vitest.config.ts b/vitest.config.ts index 8679c8100..cbfd47890 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -14,6 +14,11 @@ export default defineConfig({ restoreMocks: true, unstubEnvs: true, retry: process.env.CI ? 3 : 0, + // Logs from long-lived containers such as the reaper can arrive after a file's tests finish: + // https://github.com/vitest-dev/vitest/issues/11153 + onUnhandledError(error) { + return !(error.name === "EnvironmentTeardownError" && error.message.includes('"onUserConsoleLog"')); + }, sequence: { concurrent: true, },