test(config): isolate bundled channel metadata fixture

This commit is contained in:
Peter Steinberger
2026-04-28 20:17:48 +01:00
parent 9f37ff0c6c
commit c89b67e6c8

View File

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