mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:50:43 +00:00
test(doctor): mock system gateway discovery in e2e harness
This commit is contained in:
@@ -105,6 +105,7 @@ export const createConfigIO = vi.fn(() => ({
|
||||
export const findLegacyGatewayServices = vi.fn().mockResolvedValue([]) as unknown as MockFn;
|
||||
export const uninstallLegacyGatewayServices = vi.fn().mockResolvedValue([]) as unknown as MockFn;
|
||||
export const findExtraGatewayServices = vi.fn().mockResolvedValue([]) as unknown as MockFn;
|
||||
export const findSystemGatewayServices = vi.fn().mockResolvedValue([]) as unknown as MockFn;
|
||||
export const renderGatewayServiceCleanupHints = vi
|
||||
.fn()
|
||||
.mockReturnValue(["cleanup"]) as unknown as MockFn;
|
||||
@@ -280,6 +281,7 @@ vi.mock("../daemon/legacy.js", () => ({
|
||||
|
||||
vi.mock("../daemon/inspect.js", () => ({
|
||||
findExtraGatewayServices,
|
||||
findSystemGatewayServices,
|
||||
renderGatewayServiceCleanupHints,
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user