From b074914bda21cb38256a18e7684dcd2c891833f7 Mon Sep 17 00:00:00 2001 From: MANDEEP N H <146331633+mandeepnh5@users.noreply.github.com> Date: Wed, 25 Dec 2024 08:39:31 +0000 Subject: [PATCH 1/2] Update infintite scroll loader jest to vitest --- ...finiteScrollLoader.test.tsx => InfiniteScrollLoader.spec.tsx} | 1 + 1 file changed, 1 insertion(+) rename src/components/InfiniteScrollLoader/{InfiniteScrollLoader.test.tsx => InfiniteScrollLoader.spec.tsx} (90%) diff --git a/src/components/InfiniteScrollLoader/InfiniteScrollLoader.test.tsx b/src/components/InfiniteScrollLoader/InfiniteScrollLoader.spec.tsx similarity index 90% rename from src/components/InfiniteScrollLoader/InfiniteScrollLoader.test.tsx rename to src/components/InfiniteScrollLoader/InfiniteScrollLoader.spec.tsx index 1e179e0de0..3d6df8c91e 100644 --- a/src/components/InfiniteScrollLoader/InfiniteScrollLoader.test.tsx +++ b/src/components/InfiniteScrollLoader/InfiniteScrollLoader.spec.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { render, screen } from '@testing-library/react'; import InfiniteScrollLoader from './InfiniteScrollLoader'; +import { describe, test, expect, vi } from 'vitest'; describe('Testing InfiniteScrollLoader component', () => { test('Component should be rendered properly', () => { From a4a7f4ef32c328da431a3ef413402480581b5213 Mon Sep 17 00:00:00 2001 From: MANDEEP N H <146331633+mandeepnh5@users.noreply.github.com> Date: Wed, 25 Dec 2024 08:47:44 +0000 Subject: [PATCH 2/2] Fix linting issue --- .../InfiniteScrollLoader/InfiniteScrollLoader.spec.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/InfiniteScrollLoader/InfiniteScrollLoader.spec.tsx b/src/components/InfiniteScrollLoader/InfiniteScrollLoader.spec.tsx index 3d6df8c91e..3159082105 100644 --- a/src/components/InfiniteScrollLoader/InfiniteScrollLoader.spec.tsx +++ b/src/components/InfiniteScrollLoader/InfiniteScrollLoader.spec.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { render, screen } from '@testing-library/react'; import InfiniteScrollLoader from './InfiniteScrollLoader'; -import { describe, test, expect, vi } from 'vitest'; +import { describe, test, expect } from 'vitest'; describe('Testing InfiniteScrollLoader component', () => { test('Component should be rendered properly', () => {