mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 17:00:50 +00:00
fix: isolate bundled plugin test roots (#73235) (thanks @zqchris)
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user