fix: stabilize ci test typings and mocks

This commit is contained in:
Peter Steinberger
2026-02-22 21:38:38 +00:00
parent 3f0b9dbb36
commit e16f93af0c
3 changed files with 12 additions and 12 deletions

View File

@@ -8,17 +8,16 @@ const mocks = vi.hoisted(() => ({
}));
vi.mock("../../channels/plugins/message-actions.js", () => ({
dispatchChannelMessageAction: (...args: unknown[]) => mocks.dispatchChannelMessageAction(...args),
dispatchChannelMessageAction: mocks.dispatchChannelMessageAction,
}));
vi.mock("./message.js", () => ({
sendMessage: (...args: unknown[]) => mocks.sendMessage(...args),
sendPoll: (...args: unknown[]) => mocks.sendPoll(...args),
sendMessage: mocks.sendMessage,
sendPoll: mocks.sendPoll,
}));
vi.mock("../../media/local-roots.js", () => ({
getAgentScopedMediaLocalRoots: (...args: unknown[]) =>
mocks.getAgentScopedMediaLocalRoots(...args),
getAgentScopedMediaLocalRoots: mocks.getAgentScopedMediaLocalRoots,
}));
import { executePollAction, executeSendAction } from "./outbound-send-service.js";