fix(channels): keep test facades vitest-safe

This commit is contained in:
Vincent Koc
2026-04-10 09:17:51 +01:00
parent 75deed54f3
commit 3323ec8ff1
3 changed files with 7 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
import { describe, expect, it, vi } from "vitest";
import { createWhatsAppPollFixture, expectWhatsAppPollSent } from "../test-api.js";
import { createWhatsAppOutboundBase } from "./outbound-base.js";
import { createWhatsAppPollFixture, expectWhatsAppPollSent } from "./outbound-test-support.js";
describe("createWhatsAppOutboundBase", () => {
it("exposes the provided chunker", () => {

View File

@@ -1,3 +1,2 @@
export { whatsappOutbound } from "./src/outbound-adapter.js";
export { resolveWhatsAppRuntimeGroupPolicy } from "./src/runtime-group-policy.js";
export { createWhatsAppPollFixture, expectWhatsAppPollSent } from "./src/outbound-test-support.js";

View File

@@ -110,7 +110,12 @@ export const zaloDmPolicy: ChannelSetupDmPolicy = {
},
};
},
promptAllowFrom: promptZaloAllowFrom,
promptAllowFrom: async ({ cfg, prompter, accountId }) =>
promptZaloAllowFrom({
cfg,
prompter,
accountId: accountId ?? resolveDefaultZaloAccountId(cfg),
}),
};
export function createZaloSetupWizardProxy(