cal.pub0.org/tests/libs/__mocks__/reminderScheduler.ts

14 lines
478 B
TypeScript
Raw Permalink Normal View History

import { beforeEach, vi } from "vitest";
import { mockReset, mockDeep } from "vitest-mock-extended";
import type * as reminderScheduler from "@calcom/features/ee/workflows/lib/reminders/reminderScheduler";
vi.mock("@calcom/features/ee/workflows/lib/reminders/reminderScheduler", () => reminderSchedulerMock);
beforeEach(() => {
mockReset(reminderSchedulerMock);
});
const reminderSchedulerMock = mockDeep<typeof reminderScheduler>();
export default reminderSchedulerMock;