Skip to content

Commit 5d57cbe

Browse files
committed
Fix doctor gateway CI expectations
1 parent 866c82e commit 5d57cbe

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/cli/program/register.maintenance.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ describe("registerMaintenanceCommands doctor action", () => {
126126
skipIds: ["a"],
127127
onlyIds: ["b"],
128128
allowExec: true,
129+
deep: false,
129130
});
130131
expect(runtime.exit).toHaveBeenCalledWith(1);
131132
});

src/flows/doctor-core-checks.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ import {
1313
type CoreHealthCheckDeps,
1414
} from "./doctor-core-checks.js";
1515
import { clearHealthChecksForTest } from "./health-check-registry.js";
16-
import type { HealthCheck, HealthFinding } from "./health-checks.js";
16+
import type { HealthCheck, HealthFinding, HealthRepairEffect } from "./health-checks.js";
1717

1818
const mocks = vi.hoisted(() => ({
1919
loadModelCatalog: vi.fn(async () => []),
20-
detectExtraGatewayServiceIssues: vi.fn(async () => []),
20+
detectExtraGatewayServiceIssues: vi.fn(async (): Promise<readonly { label: string }[]> => []),
2121
extraGatewayServiceToHealthFinding: vi.fn(
2222
(service: { label: string }): HealthFinding => ({
2323
checkId: "core/doctor/gateway-services/extra",
2424
severity: "warning",
2525
message: service.label,
2626
}),
2727
),
28-
extraGatewayServiceToRepairEffects: vi.fn(() => []),
28+
extraGatewayServiceToRepairEffects: vi.fn((): readonly HealthRepairEffect[] => []),
2929
}));
3030

3131
vi.mock("../agents/model-catalog.js", () => ({

0 commit comments

Comments
 (0)