test: annotate harness mocks to avoid TS2742 in CI

This commit is contained in:
Peter Steinberger
2026-02-16 15:19:11 +00:00
parent a1ca9291f3
commit 1d37389490
6 changed files with 31 additions and 11 deletions

View File

@@ -1,11 +1,12 @@
import { vi } from "vitest";
import type { MockFn } from "../test-utils/vitest-mock-fn.js";
export const sendMock = vi.fn();
export const reactMock = vi.fn();
export const updateLastRouteMock = vi.fn();
export const dispatchMock = vi.fn();
export const readAllowFromStoreMock = vi.fn();
export const upsertPairingRequestMock = vi.fn();
export const sendMock: MockFn = vi.fn();
export const reactMock: MockFn = vi.fn();
export const updateLastRouteMock: MockFn = vi.fn();
export const dispatchMock: MockFn = vi.fn();
export const readAllowFromStoreMock: MockFn = vi.fn();
export const upsertPairingRequestMock: MockFn = vi.fn();
vi.mock("./send.js", () => ({
sendMessageDiscord: (...args: unknown[]) => sendMock(...args),