mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-27 01:41:40 +00:00
test: speed up telegram and whatsapp suites
This commit is contained in:
@@ -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"));
|
||||
});
|
||||
|
||||
|
||||
@@ -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"));
|
||||
|
||||
@@ -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"));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user