mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 03:45:46 -06:00
test(plugins): clean loader fixture root (#112981)
This commit is contained in:
committed by
GitHub
parent
a2be4efb63
commit
a3acfc7604
@@ -1,6 +1,9 @@
|
||||
// Standalone runtime registry loader tests cover registry loading outside gateway startup.
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { clearPluginLoaderCache } from "../loader.test-fixtures.js";
|
||||
import { afterAll, afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import {
|
||||
cleanupPluginLoaderFixturesForTest,
|
||||
clearPluginLoaderCache,
|
||||
} from "../loader.test-fixtures.js";
|
||||
import { createEmptyPluginRegistry } from "../registry-empty.js";
|
||||
import type { PluginRegistry } from "../registry-types.js";
|
||||
import {
|
||||
@@ -45,6 +48,10 @@ afterEach(() => {
|
||||
resetPluginRuntimeStateForTest();
|
||||
});
|
||||
|
||||
afterAll(() => {
|
||||
cleanupPluginLoaderFixturesForTest();
|
||||
});
|
||||
|
||||
describe("ensureStandaloneRuntimePluginRegistryLoaded tool-discovery installs", () => {
|
||||
it("does not replace active or pinned channel registries during tool discovery", () => {
|
||||
const activeRegistry = createRegistryWithPlugin("provider-only");
|
||||
|
||||
Reference in New Issue
Block a user