test: Create unit tests for react components in packages/ui/components/form/select (#10459)

Co-authored-by: gitstart-calcom <[email protected]>
Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-08-25 12:18:53 +00:00
1 parent ac190b89dd
commit 6f5d9dc41f
4 files changed
+318 -1

No files matched your search

+8
View File
@@ -44,6 +44,14 @@ vi.mock("@calcom/lib/OgImages", async () => {
return {};
});
vi.mock("@calcom/lib/hooks/useLocale", () => ({
useLocale: () => {
return {
t: (str: string) => str,
};
},
}));
expect.extend({
tabToBeDisabled(received) {
const isDisabled = received.classList.contains("pointer-events-none");