From dd9792662f4de78c1a5dab5421a118f88f49ddc2 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 20 Apr 2026 21:30:03 +0100 Subject: [PATCH] test: mock gateway web channel seam --- src/gateway/test-helpers.mocks.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/gateway/test-helpers.mocks.ts b/src/gateway/test-helpers.mocks.ts index 3f16c03cf62..dea065d35ae 100644 --- a/src/gateway/test-helpers.mocks.ts +++ b/src/gateway/test-helpers.mocks.ts @@ -46,10 +46,6 @@ export { testTailscaleWhois, }; -function buildBundledPluginModuleId(pluginId: string, artifactBasename: string): string { - return ["..", "..", "extensions", pluginId, artifactBasename].join("/"); -} - const gatewayTestHoisted = getGatewayTestHoistedState(); function createEmbeddedRunMockExports() { @@ -263,12 +259,6 @@ vi.mock("../commands/health.js", () => ({ vi.mock("../commands/status.js", () => ({ getStatusSummary: vi.fn().mockResolvedValue({ ok: true }), })); -vi.mock(buildBundledPluginModuleId("whatsapp", "runtime-api.js"), () => ({ - sendMessageWhatsApp: (...args: unknown[]) => - (gatewayTestHoisted.sendWhatsAppMock as (...args: unknown[]) => unknown)(...args), - sendPollWhatsApp: (...args: unknown[]) => - (gatewayTestHoisted.sendWhatsAppMock as (...args: unknown[]) => unknown)(...args), -})); vi.mock("../channels/web/index.js", async () => { const actual = await vi.importActual( "../channels/web/index.js",