From f4d60478c927269f7477e058d18de4f7b0e97bdf Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 29 Mar 2026 08:51:14 +0100 Subject: [PATCH] test: reset plugin runtime state in optional tools tests --- src/plugins/tools.optional.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/plugins/tools.optional.test.ts b/src/plugins/tools.optional.test.ts index 0cf0430be80..b2528602415 100644 --- a/src/plugins/tools.optional.test.ts +++ b/src/plugins/tools.optional.test.ts @@ -1,4 +1,4 @@ -import { beforeEach, describe, expect, it, vi } from "vitest"; +import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; type MockRegistryToolEntry = { pluginId: string; @@ -212,6 +212,10 @@ describe("resolvePluginTools optional tools", () => { resetPluginRuntimeStateForTest(); }); + afterEach(() => { + resetPluginRuntimeStateForTest?.(); + }); + it("skips optional tools without explicit allowlist", () => { setOptionalDemoRegistry(); const tools = resolveOptionalDemoTools();