From 55597e250675f6974da5d11be681dcde37f427f7 Mon Sep 17 00:00:00 2001 From: Ramneet04 Date: Thu, 26 Dec 2024 01:23:50 +0530 Subject: [PATCH 1/2] file name changed --- .../{SuperAdminScreen.test.tsx => SuperAdminScreen.spec.tsx} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename src/components/SuperAdminScreen/{SuperAdminScreen.test.tsx => SuperAdminScreen.spec.tsx} (100%) diff --git a/src/components/SuperAdminScreen/SuperAdminScreen.test.tsx b/src/components/SuperAdminScreen/SuperAdminScreen.spec.tsx similarity index 100% rename from src/components/SuperAdminScreen/SuperAdminScreen.test.tsx rename to src/components/SuperAdminScreen/SuperAdminScreen.spec.tsx From d52a407a30cc5c4a78683f52346f8b536b1010bb Mon Sep 17 00:00:00 2001 From: Ramneet04 Date: Thu, 26 Dec 2024 01:31:07 +0530 Subject: [PATCH 2/2] migrated jest to vitest --- src/components/SuperAdminScreen/SuperAdminScreen.spec.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SuperAdminScreen/SuperAdminScreen.spec.tsx b/src/components/SuperAdminScreen/SuperAdminScreen.spec.tsx index 84b740ab12..53804a54db 100644 --- a/src/components/SuperAdminScreen/SuperAdminScreen.spec.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;