fix(ci): repair helper typing regressions

This commit is contained in:
Peter Steinberger
2026-03-14 03:01:33 +00:00
parent eee5d7c6b0
commit 8bc163d15f
9 changed files with 84 additions and 98 deletions

View File

@@ -1,19 +1,22 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import { createCliRuntimeCapture } from "../test-runtime-capture.js";
import type { DaemonStatus } from "./status.gather.js";
const gatherDaemonStatus = vi.fn(async (_opts?: unknown) => ({
service: {
label: "LaunchAgent",
loaded: true,
loadedText: "loaded",
notLoadedText: "not loaded",
},
rpc: {
ok: true,
url: "ws://127.0.0.1:18789",
},
extraServices: [],
}));
const gatherDaemonStatus = vi.fn(
async (_opts?: unknown): Promise<DaemonStatus> => ({
service: {
label: "LaunchAgent",
loaded: true,
loadedText: "loaded",
notLoadedText: "not loaded",
},
rpc: {
ok: true,
url: "ws://127.0.0.1:18789",
},
extraServices: [],
}),
);
const printDaemonStatus = vi.fn();
const { runtimeErrors, defaultRuntime, resetRuntimeCapture } = createCliRuntimeCapture();