mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 11:30:43 +00:00
perf: stub unused msteams handlers in invoke tests
This commit is contained in:
@@ -19,6 +19,14 @@ const feedbackReflectionMockState = vi.hoisted(() => ({
|
||||
runFeedbackReflection: vi.fn(),
|
||||
}));
|
||||
|
||||
vi.mock("./monitor-handler/message-handler.js", () => ({
|
||||
createMSTeamsMessageHandler: () => async () => {},
|
||||
}));
|
||||
|
||||
vi.mock("./monitor-handler/reaction-handler.js", () => ({
|
||||
createMSTeamsReactionHandler: () => async () => {},
|
||||
}));
|
||||
|
||||
vi.mock("./feedback-reflection.js", async () => {
|
||||
const actual = await vi.importActual<typeof import("./feedback-reflection.js")>(
|
||||
"./feedback-reflection.js",
|
||||
|
||||
@@ -21,6 +21,14 @@ const fileConsentMockState = vi.hoisted(() => ({
|
||||
uploadToConsentUrl: vi.fn(),
|
||||
}));
|
||||
|
||||
vi.mock("./monitor-handler/message-handler.js", () => ({
|
||||
createMSTeamsMessageHandler: () => async () => {},
|
||||
}));
|
||||
|
||||
vi.mock("./monitor-handler/reaction-handler.js", () => ({
|
||||
createMSTeamsReactionHandler: () => async () => {},
|
||||
}));
|
||||
|
||||
vi.mock("./file-consent.js", async () => {
|
||||
const actual = await vi.importActual<typeof import("./file-consent.js")>("./file-consent.js");
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user