mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 19:34:59 +00:00
Merged via /review-pr -> /prepare-pr -> /merge-pr.
Prepared head SHA: 2f02ec9403
Co-authored-by: therk <901920+therk@users.noreply.github.com>
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Reviewed-by: @gumadeiras
51 lines
1.5 KiB
TypeScript
51 lines
1.5 KiB
TypeScript
import { vi } from "vitest";
|
|
|
|
vi.mock("./doctor-completion.js", () => ({
|
|
doctorShellCompletion: vi.fn().mockResolvedValue(undefined),
|
|
}));
|
|
|
|
vi.mock("./doctor-gateway-daemon-flow.js", () => ({
|
|
maybeRepairGatewayDaemon: vi.fn().mockResolvedValue(undefined),
|
|
}));
|
|
|
|
vi.mock("./doctor-gateway-health.js", () => ({
|
|
checkGatewayHealth: vi.fn().mockResolvedValue({ healthOk: false }),
|
|
probeGatewayMemoryStatus: vi.fn().mockResolvedValue({ checked: false, ready: false }),
|
|
}));
|
|
|
|
vi.mock("./doctor-memory-search.js", () => ({
|
|
noteMemorySearchHealth: vi.fn().mockResolvedValue(undefined),
|
|
}));
|
|
|
|
vi.mock("./doctor-platform-notes.js", () => ({
|
|
noteDeprecatedLegacyEnvVars: vi.fn(),
|
|
noteMacLaunchAgentOverrides: vi.fn().mockResolvedValue(undefined),
|
|
noteMacLaunchctlGatewayEnvOverrides: vi.fn().mockResolvedValue(undefined),
|
|
}));
|
|
|
|
vi.mock("./doctor-sandbox.js", () => ({
|
|
maybeRepairSandboxImages: vi.fn(async (cfg: unknown) => cfg),
|
|
noteSandboxScopeWarnings: vi.fn(),
|
|
}));
|
|
|
|
vi.mock("./doctor-security.js", () => ({
|
|
noteSecurityWarnings: vi.fn().mockResolvedValue(undefined),
|
|
}));
|
|
|
|
vi.mock("./doctor-session-locks.js", () => ({
|
|
noteSessionLockHealth: vi.fn().mockResolvedValue(undefined),
|
|
}));
|
|
|
|
vi.mock("./doctor-state-integrity.js", () => ({
|
|
noteStateIntegrity: vi.fn().mockResolvedValue(undefined),
|
|
noteWorkspaceBackupTip: vi.fn(),
|
|
}));
|
|
|
|
vi.mock("./doctor-ui.js", () => ({
|
|
maybeRepairUiProtocolFreshness: vi.fn().mockResolvedValue(undefined),
|
|
}));
|
|
|
|
vi.mock("./doctor-workspace-status.js", () => ({
|
|
noteWorkspaceStatus: vi.fn(),
|
|
}));
|