From 9d49548211b51c9f0e394ca1eb22ed637075f22e Mon Sep 17 00:00:00 2001 From: Aad1tya27 Date: Fri, 27 Dec 2024 03:28:08 +0530 Subject: [PATCH] migrated pagination.spec.tsx from jest to vitest --- .../Pagination/{Pagination.test.tsx => Pagination.spec.tsx} | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) rename src/components/Pagination/{Pagination.test.tsx => Pagination.spec.tsx} (89%) diff --git a/src/components/Pagination/Pagination.test.tsx b/src/components/Pagination/Pagination.spec.tsx similarity index 89% rename from src/components/Pagination/Pagination.test.tsx rename to src/components/Pagination/Pagination.spec.tsx index 40ac2ed19a..873f790565 100644 --- a/src/components/Pagination/Pagination.test.tsx +++ b/src/components/Pagination/Pagination.spec.tsx @@ -6,6 +6,7 @@ import { createTheme, ThemeProvider } from '@mui/material/styles'; import Pagination from './Pagination'; import { store } from 'state/store'; import userEvent from '@testing-library/user-event'; +import { describe, it } from 'vitest'; describe('Testing Pagination component', () => { const props = { @@ -17,7 +18,7 @@ describe('Testing Pagination component', () => { }, }; - test('Component should be rendered properly on rtl', async () => { + it('Component should be rendered properly on rtl', async () => { render( @@ -42,7 +43,7 @@ const props = { theme: { direction: 'rtl' }, }; -test('Component should be rendered properly', async () => { +it('Component should be rendered properly', async () => { const theme = createTheme({ direction: 'rtl', });