perf(test): isolate doctor migration plugin discovery

This commit is contained in:
Peter Steinberger
2026-07-06 04:30:57 -04:00
parent e7ca90e3af
commit ca2e508f87

View File

@@ -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);