refactor: simplify plugin cache boundaries

This commit is contained in:
Peter Steinberger
2026-04-29 04:33:10 +01:00
parent 4f9f7fc8c2
commit e27fe55aa8
114 changed files with 58 additions and 617 deletions

View File

@@ -6,7 +6,6 @@ import { afterAll, afterEach, beforeAll, expect, vi } from "vitest";
import { clearRuntimeAuthProfileStoreSnapshots } from "../../../src/agents/auth-profiles.js";
import { withFastReplyConfig } from "../../../src/auto-reply/reply/get-reply-fast-path.js";
import type { OpenClawConfig } from "../../../src/config/types.openclaw.js";
import { resetProviderRuntimeHookCacheForTest } from "../../../src/plugins/provider-runtime.js";
// Avoid exporting vitest mock types (TS2742 under pnpm + d.ts emit).
type AnyMock = any;
@@ -447,7 +446,6 @@ export async function expectBareNewOrResetAcknowledged(params: {
export function installTriggerHandlingE2eTestHooks() {
afterEach(() => {
clearRuntimeAuthProfileStoreSnapshots();
resetProviderRuntimeHookCacheForTest();
vi.clearAllMocks();
});
}