File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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 } )
You can’t perform that action at this time.
0 commit comments