diff --git a/test/hooks/useSelector.spec.tsx b/test/hooks/useSelector.spec.tsx index e5ff66d51..d802e8e97 100644 --- a/test/hooks/useSelector.spec.tsx +++ b/test/hooks/useSelector.spec.tsx @@ -509,7 +509,11 @@ describe('React', () => { , ) - const doDispatch = () => normalStore.dispatch({ type: '' }) + const doDispatch = () => { + rtl.act(() => { + normalStore.dispatch({ type: '' }) + }) + } expect(doDispatch).not.toThrowError() spy.mockRestore()