test(ci): fix logs cli gateway mock typing

This commit is contained in:
Peter Steinberger 2026-04-04 00:28:25 +01:00
parent 3a3fdf1920
commit 236a9003b6
No known key found for this signature in database
1 changed files with 12 additions and 5 deletions

View File

@ -4,11 +4,18 @@ import { formatLogTimestamp, registerLogsCli } from "./logs-cli.js";
const callGatewayFromCli = vi.fn();
const readConfiguredLogTail = vi.fn();
const buildGatewayConnectionDetails = vi.fn(() => ({
url: "ws://127.0.0.1:18789",
urlSource: "local loopback",
message: "",
}));
const buildGatewayConnectionDetails = vi.fn(
(_options?: {
configPath?: string;
config?: unknown;
url?: string;
urlSource?: "cli" | "env";
}) => ({
url: "ws://127.0.0.1:18789",
urlSource: "local loopback",
message: "",
}),
);
vi.mock("../gateway/call.js", () => ({
buildGatewayConnectionDetails: (