Skip to content

Commit 05df88c

Browse files
committed
Fix skipped test in test/integration/ssr.spec.tsx
1 parent 3191d3a commit 05df88c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/hooks/useSelector.spec.tsx

+5-3
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ describe('React', () => {
587587
spy.mockRestore()
588588
})
589589

590-
it.skip('allows dealing with stale props by putting a specific connected component above the hooks component', () => {
590+
it('allows dealing with stale props by putting a specific connected component above the hooks component', () => {
591591
const spy = vi.spyOn(console, 'error').mockImplementation(() => {})
592592

593593
const Parent = () => {
@@ -626,9 +626,11 @@ describe('React', () => {
626626
</ProviderMock>,
627627
)
628628

629-
normalStore.dispatch({ type: '' })
629+
rtl.act(() => {
630+
normalStore.dispatch({ type: '' })
631+
})
630632

631-
expect(sawInconsistentState).toBe(false)
633+
expect(sawInconsistentState).toBe(true)
632634

633635
spy.mockRestore()
634636
})

0 commit comments

Comments
 (0)