From a5a3ab958f04d12e6d2fefba5e37b7445efd5391 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 21 Jan 2026 03:28:58 +0000 Subject: [PATCH] fix: skip bundled plugin discovery in tests --- src/plugins/bundled-dir.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/bundled-dir.ts b/src/plugins/bundled-dir.ts index 33524c36f..d0a3294fb 100644 --- a/src/plugins/bundled-dir.ts +++ b/src/plugins/bundled-dir.ts @@ -5,6 +5,9 @@ import { fileURLToPath } from "node:url"; export function resolveBundledPluginsDir(): string | undefined { const override = process.env.CLAWDBOT_BUNDLED_PLUGINS_DIR?.trim(); if (override) return override; + if ((process.env.VITEST || process.env.NODE_ENV === "test") && !override) { + return undefined; + } // bun --compile: ship a sibling `extensions/` next to the executable. try {