test(discord): fix updated test harness mocks

This commit is contained in:
Sebastian
2026-02-15 11:44:39 -05:00
parent 10feda100e
commit 6277698f86
3 changed files with 22 additions and 12 deletions

View File

@@ -28,7 +28,14 @@ vi.mock("../../agents/identity.js", async (importOriginal) => {
};
});
export function getSlackSlashMocks() {
type SlashHarnessMocks = {
dispatchMock: ReturnType<typeof vi.fn>;
readAllowFromStoreMock: ReturnType<typeof vi.fn>;
upsertPairingRequestMock: ReturnType<typeof vi.fn>;
resolveAgentRouteMock: ReturnType<typeof vi.fn>;
};
export function getSlackSlashMocks(): SlashHarnessMocks {
return mocks;
}