test(plugins): clean loader fixture root (#112981)

This commit is contained in:
Peter Steinberger
2026-07-23 07:24:41 -04:00
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");