mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-11 03:16:03 +00:00
perf(test): isolate doctor migration plugin discovery
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user