fix: skip bundled plugin discovery in tests

This commit is contained in:
Peter Steinberger
2026-01-21 03:28:58 +00:00
parent 165861e78d
commit a5a3ab958f

View File

@@ -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 {