734382b5b3
* Moving to vitest * Rearranging test * Fixing prettier linting * Reverting launch.json * Adjustments * Merged with main and regenerated lockfile * Fixing tests for API * Yarn updated, docs is gone --------- Co-authored-by: Peer Richelsen <peeroke@gmail.com> Co-authored-by: zomars <zomars@me.com> Co-authored-by: Alex van Andel <me@alexvanandel.com>
14 lines
400 B
TypeScript
14 lines
400 B
TypeScript
import { beforeEach, vi } from "vitest";
|
|
import { mockReset, mockDeep } from "vitest-mock-extended";
|
|
|
|
import type * as CalendarManager from "@calcom/core/CalendarManager";
|
|
|
|
vi.mock("@calcom/core/CalendarManager", () => CalendarManagerMock);
|
|
|
|
beforeEach(() => {
|
|
mockReset(CalendarManagerMock);
|
|
});
|
|
|
|
const CalendarManagerMock = mockDeep<typeof CalendarManager>();
|
|
export default CalendarManagerMock;
|