|
1 | 1 | // Qqbot tests cover group-allways command plugin behavior. |
2 | 2 | import type { OpenClawConfig } from "openclaw/plugin-sdk/config-contracts"; |
3 | 3 | import { beforeEach, describe, expect, it, vi } from "vitest"; |
4 | | -import type { QueuedMessage } from "../gateway/message-queue.js"; |
5 | | -import type { GatewayAccount } from "../gateway/types.js"; |
6 | | -import { sendText } from "../messaging/sender.js"; |
7 | | -import { trySlashCommand } from "./slash-command-handler.js"; |
8 | | -import { getWrittenQQBotConfig, installCommandRuntime } from "./slash-command-test-support.js"; |
| 4 | +import type { QueuedMessage } from "../../gateway/message-queue.js"; |
| 5 | +import type { GatewayAccount } from "../../gateway/types.js"; |
| 6 | +import { sendText } from "../../messaging/sender.js"; |
| 7 | +import { trySlashCommand } from "../slash-command-handler.js"; |
| 8 | +import { installCommandRuntime } from "../slash-command-test-support.js"; |
9 | 9 |
|
10 | | -vi.mock("../messaging/outbound.js", () => ({ |
| 10 | +vi.mock("../../messaging/outbound.js", () => ({ |
11 | 11 | sendDocument: vi.fn(async () => undefined), |
12 | 12 | })); |
13 | 13 |
|
14 | | -vi.mock("../messaging/sender.js", () => ({ |
| 14 | +vi.mock("../../messaging/sender.js", () => ({ |
15 | 15 | accountToCreds: vi.fn(() => ({ appId: "app", clientSecret: "" })), |
16 | 16 | buildDeliveryTarget: vi.fn(() => ({ targetType: "c2c", targetId: "TRUSTED_OPENID" })), |
17 | 17 | sendText: vi.fn(async () => undefined), |
|
0 commit comments