test: speed up telegram and whatsapp suites

This commit is contained in:
Peter Steinberger
2026-03-24 21:47:11 +00:00
parent 14e3c2de5f
commit a18e156316
3 changed files with 0 additions and 3 deletions

View File

@@ -121,7 +121,6 @@ describe("dispatchTelegramMessage draft streaming", () => {
type TelegramMessageContext = Parameters<typeof dispatchTelegramMessage>[0]["context"];
beforeAll(async () => {
vi.resetModules();
({ dispatchTelegramMessage } = await import("./bot-message-dispatch.js"));
});

View File

@@ -51,7 +51,6 @@ function resolveSkillCommands(config: Parameters<typeof listNativeCommandSpecsFo
const ORIGINAL_TZ = process.env.TZ;
describe("createTelegramBot", () => {
beforeAll(async () => {
vi.resetModules();
({ listNativeCommandSpecs, listNativeCommandSpecsForConfig } =
await import("../../../src/auto-reply/commands-registry.js"));
({ loadSessionStore } = await import("../../../src/config/sessions.js"));

View File

@@ -6,7 +6,6 @@ let extractText: typeof import("./inbound.js").extractText;
describe("web inbound helpers", () => {
beforeAll(async () => {
vi.resetModules();
({ extractLocationData, extractMediaPlaceholder, extractText } = await import("./inbound.js"));
});