From ca2e508f8705e79e40d2bc9258d7e54531c20676 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 6 Jul 2026 04:30:57 -0400 Subject: [PATCH] perf(test): isolate doctor migration plugin discovery --- src/commands/doctor-state-migrations.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/commands/doctor-state-migrations.test.ts b/src/commands/doctor-state-migrations.test.ts index 5f68483278c1..35bbbb40f18a 100644 --- a/src/commands/doctor-state-migrations.test.ts +++ b/src/commands/doctor-state-migrations.test.ts @@ -170,6 +170,12 @@ vi.mock("../infra/json-files.js", async () => { }; }); +vi.mock("../plugins/doctor-contract-registry.js", () => ({ + collectRelevantDoctorPluginIds: vi.fn(() => []), + listPluginDoctorSessionStoreAgentIds: vi.fn(() => []), + listPluginDoctorStateMigrationEntries: vi.fn(() => []), +})); + async function makeTempRoot() { const root = await fs.promises.mkdtemp(path.join(os.tmpdir(), "openclaw-doctor-")); tempRoots.push(root);