mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-03 05:12:15 +00:00
test(bluebubbles): trim webhook auth import cost
This commit is contained in:
@@ -50,13 +50,12 @@ vi.mock("./attachments.js", () => ({
|
||||
}),
|
||||
}));
|
||||
|
||||
vi.mock("./reactions.js", async () => {
|
||||
const actual = await vi.importActual<typeof import("./reactions.js")>("./reactions.js");
|
||||
return {
|
||||
...actual,
|
||||
sendBlueBubblesReaction: vi.fn().mockResolvedValue(undefined),
|
||||
};
|
||||
});
|
||||
vi.mock("./reactions.js", () => ({
|
||||
normalizeBlueBubblesReactionInput: vi.fn((emoji: string, remove?: boolean) =>
|
||||
remove ? `-${emoji}` : emoji,
|
||||
),
|
||||
sendBlueBubblesReaction: vi.fn().mockResolvedValue(undefined),
|
||||
}));
|
||||
|
||||
vi.mock("./history.js", () => ({
|
||||
fetchBlueBubblesHistory: vi.fn().mockResolvedValue({ entries: [], resolved: true }),
|
||||
|
||||
2
test/fixtures/test-timings.extensions.json
vendored
2
test/fixtures/test-timings.extensions.json
vendored
@@ -4,7 +4,7 @@
|
||||
"defaultDurationMs": 1000,
|
||||
"files": {
|
||||
"extensions/bluebubbles/src/monitor.webhook-auth.test.ts": {
|
||||
"durationMs": 115900,
|
||||
"durationMs": 93900,
|
||||
"testCount": 19
|
||||
},
|
||||
"extensions/matrix/src/plugin-entry.runtime.test.ts": {
|
||||
|
||||
Reference in New Issue
Block a user