mirror of https://github.com/openclaw/openclaw.git
test: speed up telegram and whatsapp suites
This commit is contained in:
parent
14e3c2de5f
commit
a18e156316
|
|
@ -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"));
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue