From 22436b5f3a79fae2d6ac32edd4d09dd3c94d9a9b Mon Sep 17 00:00:00 2001 From: Ramneet Singh <144323012+Ramneet04@users.noreply.github.com> Date: Thu, 26 Dec 2024 02:19:54 +0530 Subject: [PATCH] Refactor src/components/SuperAdminScreen/SuperAdminScreen.test.tsx from Jest to Vitest #2820 (#2874) * file name changed * migrated jest to vitest --- .../{SuperAdminScreen.test.tsx => SuperAdminScreen.spec.tsx} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename src/components/SuperAdminScreen/{SuperAdminScreen.test.tsx => SuperAdminScreen.spec.tsx} (97%) diff --git a/src/components/SuperAdminScreen/SuperAdminScreen.test.tsx b/src/components/SuperAdminScreen/SuperAdminScreen.spec.tsx similarity index 97% rename from src/components/SuperAdminScreen/SuperAdminScreen.test.tsx rename to src/components/SuperAdminScreen/SuperAdminScreen.spec.tsx index 84b740ab12..53804a54db 100644 --- a/src/components/SuperAdminScreen/SuperAdminScreen.test.tsx +++ b/src/components/SuperAdminScreen/SuperAdminScreen.spec.tsx @@ -1,13 +1,13 @@ import React from 'react'; import { MockedProvider } from '@apollo/react-testing'; import { fireEvent, render, screen } from '@testing-library/react'; -import 'jest-location-mock'; import { I18nextProvider } from 'react-i18next'; import { Provider } from 'react-redux'; import { BrowserRouter } from 'react-router-dom'; import { store } from 'state/store'; import i18nForTest from 'utils/i18nForTest'; import SuperAdminScreen from './SuperAdminScreen'; +import { describe, test, expect } from 'vitest'; const resizeWindow = (width: number): void => { window.innerWidth = width;