cal.pub0.org/tests/libs/__mocks__/app-store.ts

18 lines
420 B
TypeScript
Raw Normal View History

2023-08-29 15:29:41 +00:00
import { beforeEach, vi } from "vitest";
import { mockReset, mockDeep } from "vitest-mock-extended";
import type * as appStore from "@calcom/app-store";
2023-08-30 13:46:35 +00:00
vi.mock("@calcom/app-store", () => appStoreMock);
2023-08-29 15:29:41 +00:00
beforeEach(() => {
mockReset(appStoreMock);
});
2023-08-30 13:46:35 +00:00
const appStoreMock = mockDeep<typeof appStore>({
fallbackMockImplementation: () => {
throw new Error("Unimplemented");
},
});
2023-08-29 15:29:41 +00:00
export default appStoreMock;