diff --git a/src/config/plugin-auto-enable.prefer-over.test.ts b/src/config/plugin-auto-enable.prefer-over.test.ts index d8a31c523cf..be5253a793e 100644 --- a/src/config/plugin-auto-enable.prefer-over.test.ts +++ b/src/config/plugin-auto-enable.prefer-over.test.ts @@ -4,6 +4,11 @@ import { afterEach, describe, expect, it, vi } from "vitest"; import type { PluginManifestRegistry } from "../plugins/manifest-registry.js"; import { cleanupTrackedTempDirs } from "../plugins/test-helpers/fs-fixtures.js"; +vi.mock("../plugins/bundled-dir.js", () => ({ + resolveBundledPluginsDir: (env: NodeJS.ProcessEnv = process.env) => + env.OPENCLAW_BUNDLED_PLUGINS_DIR, +})); + const tempDirs: string[] = []; function makeTempDir(): string {