perf: stub unused msteams handlers in invoke tests

This commit is contained in:
Peter Steinberger
2026-04-23 21:41:48 +01:00
parent 3fbe191ecc
commit e66a08658a
2 changed files with 16 additions and 0 deletions

View File

@@ -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",

View File

@@ -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 {