File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -587,7 +587,7 @@ describe('React', () => {
587
587
spy . mockRestore ( )
588
588
} )
589
589
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' , ( ) => {
591
591
const spy = vi . spyOn ( console , 'error' ) . mockImplementation ( ( ) => { } )
592
592
593
593
const Parent = ( ) => {
@@ -626,9 +626,11 @@ describe('React', () => {
626
626
</ ProviderMock > ,
627
627
)
628
628
629
- normalStore . dispatch ( { type : '' } )
629
+ rtl . act ( ( ) => {
630
+ normalStore . dispatch ( { type : '' } )
631
+ } )
630
632
631
- expect ( sawInconsistentState ) . toBe ( false )
633
+ expect ( sawInconsistentState ) . toBe ( true )
632
634
633
635
spy . mockRestore ( )
634
636
} )
You can’t perform that action at this time.
0 commit comments