mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-30 23:50:22 +00:00
perf(discord): avoid broad send barrel in webhook activity test
This commit is contained in:
@@ -19,11 +19,11 @@ vi.mock("../../../src/infra/channel-activity.js", async (importOriginal) => {
|
||||
};
|
||||
});
|
||||
|
||||
let sendWebhookMessageDiscord: typeof import("./send.js").sendWebhookMessageDiscord;
|
||||
let sendWebhookMessageDiscord: typeof import("./send.outbound.js").sendWebhookMessageDiscord;
|
||||
|
||||
describe("sendWebhookMessageDiscord activity", () => {
|
||||
beforeAll(async () => {
|
||||
({ sendWebhookMessageDiscord } = await import("./send.js"));
|
||||
({ sendWebhookMessageDiscord } = await import("./send.outbound.js"));
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
|
||||
2
test/fixtures/test-timings.channels.json
vendored
2
test/fixtures/test-timings.channels.json
vendored
@@ -298,7 +298,7 @@
|
||||
"durationMs": 282
|
||||
},
|
||||
"extensions/discord/src/send.webhook-activity.test.ts": {
|
||||
"durationMs": 246
|
||||
"durationMs": 31110
|
||||
},
|
||||
"src/browser/routes/basic.existing-session.test.ts": {
|
||||
"durationMs": 221
|
||||
|
||||
Reference in New Issue
Block a user