From d043f5151e2c52666ac14a49022e6f10405cba84 Mon Sep 17 00:00:00 2001 From: Pranav Nathe <93403830+pranavnathe@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:56:32 +0530 Subject: [PATCH] Refactor IconComponent from Jest to Vitest #2836 --- .../{IconComponent.test.tsx => IconComponent.spec.tsx} | 5 +++++ 1 file changed, 5 insertions(+) rename src/components/IconComponent/{IconComponent.test.tsx => IconComponent.spec.tsx} (94%) diff --git a/src/components/IconComponent/IconComponent.test.tsx b/src/components/IconComponent/IconComponent.spec.tsx similarity index 94% rename from src/components/IconComponent/IconComponent.test.tsx rename to src/components/IconComponent/IconComponent.spec.tsx index 3ba6ccd84d..b398fe7986 100644 --- a/src/components/IconComponent/IconComponent.test.tsx +++ b/src/components/IconComponent/IconComponent.spec.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { render, screen } from '@testing-library/react'; import IconComponent from './IconComponent'; +import { describe, it, expect } from 'vitest'; const screenTestIdMap: Record> = { MyOrganizations: { @@ -83,6 +84,10 @@ const screenTestIdMap: Record> = { name: 'My Pledges', testId: 'Icon-Component-My-Pledges', }, + LeaveOrganization: { + name: 'Leave Organization', + testId: 'Icon-Component-Leave-Organization', + }, Volunteer: { name: 'Volunteer', testId: 'Icon-Component-Volunteer',