cal/tests/libs/__mocks__/app-store.ts
Hariom Balhara f9eb335d0b
test: Integration tests for handleNewBooking (#11044)
Co-authored-by: Shivam Kalra <shivamkalra98@gmail.com>
Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com>
2023-09-06 12:23:53 -07:00

18 lines
420 B
TypeScript

import { beforeEach, vi } from "vitest";
import { mockReset, mockDeep } from "vitest-mock-extended";
import type * as appStore from "@calcom/app-store";
vi.mock("@calcom/app-store", () => appStoreMock);
beforeEach(() => {
mockReset(appStoreMock);
});
const appStoreMock = mockDeep<typeof appStore>({
fallbackMockImplementation: () => {
throw new Error("Unimplemented");
},
});
export default appStoreMock;