From db8c511cdd44a583332a951059daf7ef8170eec9 Mon Sep 17 00:00:00 2001 From: MANDEEP N H <146331633+mandeepnh5@users.noreply.github.com> Date: Wed, 25 Dec 2024 09:41:03 +0000 Subject: [PATCH] Update member request card jest to vitest --- .../{MemberRequestCard.test.tsx => MemberRequestCard.spec.tsx} | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) rename src/components/MemberRequestCard/{MemberRequestCard.test.tsx => MemberRequestCard.spec.tsx} (97%) diff --git a/src/components/MemberRequestCard/MemberRequestCard.test.tsx b/src/components/MemberRequestCard/MemberRequestCard.spec.tsx similarity index 97% rename from src/components/MemberRequestCard/MemberRequestCard.test.tsx rename to src/components/MemberRequestCard/MemberRequestCard.spec.tsx index a38a046ea2..5779d3688a 100644 --- a/src/components/MemberRequestCard/MemberRequestCard.test.tsx +++ b/src/components/MemberRequestCard/MemberRequestCard.spec.tsx @@ -11,6 +11,7 @@ import { import MemberRequestCard from './MemberRequestCard'; import i18nForTest from 'utils/i18nForTest'; import { StaticMockLink } from 'utils/StaticMockLink'; +import { describe, vi, expect } from 'vitest'; const MOCKS = [ { @@ -65,7 +66,7 @@ describe('Testing Member Request Card', () => { email: 'johndoe@gmail.com', }; - global.alert = jest.fn(); + global.alert = vi.fn(); it('should render props and text elements test for the page component', async () => { global.confirm = (): boolean => true;