import { beforeEach, describe, expect, it, vi } from "vitest"; import type { OpenClawConfig } from "../config/config.js"; import { noteChromeMcpBrowserReadiness } from "./doctor-browser.js";
it("warns and no-ops when the browser doctor surface is unavailable", async () => {
loadBundledPluginPublicSurfaceModuleSync.mockImplementation(() => { thrownew Error("missing browser doctor facade");
});
const noteFn = vi.fn();
await expect(noteChromeMcpBrowserReadiness({}, { noteFn })).resolves.toBeUndefined();
expect(noteFn).toHaveBeenCalledTimes(1);
expect(String(noteFn.mock.calls[0]?.[0])).toContain("Browser health check is unavailable");
expect(String(noteFn.mock.calls[0]?.[0])).toContain("missing browser doctor facade");
expect(noteFn.mock.calls[0]?.[1]).toBe("Browser");
});
});
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.9 Sekunden
(vorverarbeitet am 2026-06-05)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.