* mv team queries to features from lib * update imports * same * wip * move event manager test * calendar manager to features from lib * update imports * update imports * fix * mv getEventTypeById * fix * fix * remove * fix type check error * fix tests * fix tests * fix
14 lines
436 B
TypeScript
14 lines
436 B
TypeScript
import { beforeEach, vi } from "vitest";
|
|
import { mockReset, mockDeep } from "vitest-mock-extended";
|
|
|
|
import type * as CalendarManager from "@calcom/features/calendars/lib/CalendarManager";
|
|
|
|
vi.mock("@calcom/features/calendars/lib/CalendarManager", () => CalendarManagerMock);
|
|
|
|
beforeEach(() => {
|
|
mockReset(CalendarManagerMock);
|
|
});
|
|
|
|
const CalendarManagerMock = mockDeep<typeof CalendarManager>();
|
|
export default CalendarManagerMock;
|