test: fix mocks for target resolver

This commit is contained in:
Peter Steinberger
2026-01-17 04:40:57 +00:00
parent fcb7c9ff65
commit ee738e6578
2 changed files with 2 additions and 1 deletions

View File

@@ -16,8 +16,8 @@ import {
import { zalouserOnboardingAdapter } from "./onboarding.js"; import { zalouserOnboardingAdapter } from "./onboarding.js";
import { sendMessageZalouser } from "./send.js"; import { sendMessageZalouser } from "./send.js";
import { checkZcaInstalled, parseJsonOutput, runZca, runZcaInteractive } from "./zca.js"; import { checkZcaInstalled, parseJsonOutput, runZca, runZcaInteractive } from "./zca.js";
import {
import { missingTargetError } from "../../../src/infra/outbound/target-errors.js"; import { missingTargetError } from "../../../src/infra/outbound/target-errors.js";
import {
DEFAULT_ACCOUNT_ID, DEFAULT_ACCOUNT_ID,
type CoreConfig, type CoreConfig,
type ZalouserConfig, type ZalouserConfig,

View File

@@ -12,6 +12,7 @@ const mocks = vi.hoisted(() => ({
vi.mock("../../channels/plugins/index.js", () => ({ vi.mock("../../channels/plugins/index.js", () => ({
getChannelPlugin: (...args: unknown[]) => mocks.getChannelPlugin(...args), getChannelPlugin: (...args: unknown[]) => mocks.getChannelPlugin(...args),
normalizeChannelId: (value: string) => value,
})); }));
describe("resolveMessagingTarget (directory fallback)", () => { describe("resolveMessagingTarget (directory fallback)", () => {