test: mock health status config boundaries

This commit is contained in:
Peter Steinberger
2026-04-17 07:05:21 +01:00
parent 299694d721
commit 9d5ab4a54c
2 changed files with 8 additions and 0 deletions

View File

@@ -23,6 +23,10 @@ vi.mock("../gateway/call.js", () => ({
Reflect.apply(buildGatewayConnectionDetailsMock, undefined, args),
}));
vi.mock("../config/config.js", () => ({
readBestEffortConfig: vi.fn(async () => ({})),
}));
vi.mock("../channels/plugins/index.js", () => {
const whatsappPlugin = {
id: "whatsapp",

View File

@@ -7,6 +7,10 @@ vi.mock("../channels/plugins/index.js", () => ({
listChannelPlugins: () => pluginRegistry.list,
}));
vi.mock("../channels/read-only-account-inspect.js", () => ({
inspectReadOnlyChannelAccount: () => undefined,
}));
import { resolveLinkChannelContext } from "./status.link-channel.js";
describe("resolveLinkChannelContext", () => {