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

14 lines
368 B
TypeScript

import { beforeEach, vi } from "vitest";
import { mockReset, mockDeep } from "vitest-mock-extended";
import type * as videoClient from "@calcom/core/videoClient";
vi.mock("@calcom/core/videoClient", () => videoClientMock);
beforeEach(() => {
mockReset(videoClientMock);
});
const videoClientMock = mockDeep<typeof videoClient>();
export default videoClientMock;