mirror of https://github.com/openclaw/openclaw.git
test: reset plugin runtime state in optional tools tests
This commit is contained in:
parent
ebb919e311
commit
f4d60478c9
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue