diff --git a/test/hooks/useSelector.spec.tsx b/test/hooks/useSelector.spec.tsx index cadae0f90..e5ff66d51 100644 --- a/test/hooks/useSelector.spec.tsx +++ b/test/hooks/useSelector.spec.tsx @@ -587,7 +587,7 @@ describe('React', () => { spy.mockRestore() }) - it.skip('allows dealing with stale props by putting a specific connected component above the hooks component', () => { + it('allows dealing with stale props by putting a specific connected component above the hooks component', () => { const spy = vi.spyOn(console, 'error').mockImplementation(() => {}) const Parent = () => { @@ -626,9 +626,11 @@ describe('React', () => { , ) - normalStore.dispatch({ type: '' }) + rtl.act(() => { + normalStore.dispatch({ type: '' }) + }) - expect(sawInconsistentState).toBe(false) + expect(sawInconsistentState).toBe(true) spy.mockRestore() })