|
1 | 1 | import fs from "node:fs/promises"; |
2 | 2 | import os from "node:os"; |
3 | 3 | import path from "node:path"; |
4 | | -import { afterAll, afterEach, beforeAll, describe, expect, it, vi } from "vitest"; |
| 4 | +import { afterAll, beforeAll, describe, expect, it, vi } from "vitest"; |
5 | 5 | import { clearPluginManifestRegistryCache } from "../plugins/manifest-registry.js"; |
6 | 6 | import { validateConfigObjectWithPlugins } from "./validation.js"; |
7 | 7 | |
@@ -109,7 +109,6 @@ describe("config plugin validation", () => {
|
109 | 109 | OPENCLAW_HOME: undefined, |
110 | 110 | OPENCLAW_STATE_DIR: path.join(suiteHome, ".openclaw"), |
111 | 111 | OPENCLAW_PLUGIN_MANIFEST_CACHE_MS: "10000", |
112 | | -OPENCLAW_DISABLE_PLUGIN_DISCOVERY_CACHE: "1", |
113 | 112 | OPENCLAW_BUNDLED_PLUGINS_DIR: undefined, |
114 | 113 | OPENCLAW_VERSION: undefined, |
115 | 114 | VITEST: "true", |
@@ -228,11 +227,6 @@ describe("config plugin validation", () => {
|
228 | 227 | }); |
229 | 228 | }); |
230 | 229 | |
231 | | -afterEach(() => { |
232 | | -vi.restoreAllMocks(); |
233 | | -clearPluginManifestRegistryCache(); |
234 | | -}); |
235 | | - |
236 | 230 | afterAll(async () => { |
237 | 231 | await fs.rm(fixtureRoot, { recursive: true, force: true }); |
238 | 232 | clearPluginManifestRegistryCache(); |
|