From eb57354a29f63e8f15412159ebc62e88a94735da Mon Sep 17 00:00:00 2001 From: dengfuping Date: Thu, 25 Apr 2024 16:31:48 +0800 Subject: [PATCH] fix(test): Remove vitest mock for react --- tests/setupTests.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/setupTests.ts b/tests/setupTests.ts index f6eab975f..50fab256b 100644 --- a/tests/setupTests.ts +++ b/tests/setupTests.ts @@ -16,14 +16,6 @@ global.React = React; ReactDOM.createPortal = vi.fn(modal => modal); -vi.mock('react', async () => { - const mockReact = await vi.importActual('react'); - return { - ...mockReact, - useLayoutEffect: mockReact.useEffect, - }; -}); - excludeAllWarning(); const fetchMocker = createFetchMock(vi);