Skip to content

Commit

Permalink
Fix skipped test in test/integration/ssr.spec.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 authored and markerikson committed Dec 10, 2024
1 parent d0add7f commit eaa8271
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/hooks/useSelector.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down Expand Up @@ -626,9 +626,11 @@ describe('React', () => {
</ProviderMock>,
)

normalStore.dispatch({ type: '' })
rtl.act(() => {
normalStore.dispatch({ type: '' })
})

expect(sawInconsistentState).toBe(false)
expect(sawInconsistentState).toBe(true)

spy.mockRestore()
})
Expand Down

0 comments on commit eaa8271

Please sign in to comment.