Skip to content

Commit b0f5233

Browse files
committed
test(doctor): type disk-space health finding mock
1 parent 38fd604 commit b0f5233

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/flows/doctor-health-contributions.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
shouldSkipLegacyUpdateDoctorConfigWrite,
1111
} from "./doctor-health-contributions.js";
1212
import { runDoctorLintChecks } from "./doctor-lint-flow.js";
13-
import type { HealthCheck } from "./health-checks.js";
13+
import type { HealthCheck, HealthFinding } from "./health-checks.js";
1414

1515
const mocks = vi.hoisted(() => ({
1616
maybeRunConfiguredPluginInstallReleaseStep: vi.fn(),
@@ -83,7 +83,7 @@ const mocks = vi.hoisted(() => ({
8383
gatherDaemonStatus: vi.fn(),
8484
noteWorkspaceStatus: vi.fn(),
8585
collectWorkspaceStatusHealthFindings: vi.fn().mockResolvedValue([]),
86-
collectDiskSpaceHealthFindings: vi.fn(() => []),
86+
collectDiskSpaceHealthFindings: vi.fn((): readonly HealthFinding[] => []),
8787
collectDevicePairingHealthFindings: vi.fn(async () => []),
8888
scanConfiguredChannelPluginBlockers: vi.fn(
8989
(): Array<{ channelId: string; pluginId: string; reason: string }> => [],

0 commit comments

Comments
 (0)