mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-03 17:44:06 +00:00
test(doctor): complete browser health mock
This commit is contained in:
@@ -6,12 +6,14 @@ import type { HealthRepairContext } from "./health-checks.js";
|
||||
const browserMocks = vi.hoisted(() => ({
|
||||
detectLegacyClawdBrowserProfileResidue: vi.fn(),
|
||||
maybeArchiveLegacyClawdBrowserProfileResidue: vi.fn(),
|
||||
noteChromeMcpBrowserReadiness: vi.fn(),
|
||||
}));
|
||||
|
||||
vi.mock("../commands/doctor-browser.js", () => ({
|
||||
detectLegacyClawdBrowserProfileResidue: browserMocks.detectLegacyClawdBrowserProfileResidue,
|
||||
maybeArchiveLegacyClawdBrowserProfileResidue:
|
||||
browserMocks.maybeArchiveLegacyClawdBrowserProfileResidue,
|
||||
noteChromeMcpBrowserReadiness: browserMocks.noteChromeMcpBrowserReadiness,
|
||||
}));
|
||||
|
||||
const residue = {
|
||||
@@ -38,6 +40,7 @@ describe("browser clawd profile residue health check", () => {
|
||||
beforeEach(() => {
|
||||
browserMocks.detectLegacyClawdBrowserProfileResidue.mockReset();
|
||||
browserMocks.maybeArchiveLegacyClawdBrowserProfileResidue.mockReset();
|
||||
browserMocks.noteChromeMcpBrowserReadiness.mockReset();
|
||||
});
|
||||
|
||||
it("reports legacy clawd profile residue through doctor lint", async () => {
|
||||
|
||||
Reference in New Issue
Block a user