fix: isolate bundled plugin test roots (#73235) (thanks @zqchris)

This commit is contained in:
Peter Steinberger
2026-04-28 20:21:07 +01:00
parent 2f7c4070f4
commit b8f071a139
6 changed files with 38 additions and 5 deletions

View File

@@ -37,6 +37,9 @@ vi.mock("@mariozechner/clipboard", () => ({
// Ensure Vitest environment is properly set.
process.env.VITEST = "true";
// Tests frequently point bundled plugin discovery at temp fixture roots. Production still rejects
// arbitrary OPENCLAW_BUNDLED_PLUGINS_DIR overrides unless this Vitest-only opt-in is present.
process.env.OPENCLAW_TEST_TRUST_BUNDLED_PLUGINS_DIR ??= "1";
// Config validation walks plugin manifests; keep an aggressive cache in tests to avoid
// repeated filesystem discovery across suites/workers.
process.env.OPENCLAW_PLUGIN_MANIFEST_CACHE_MS ??= "60000";