File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
packages/react/src/__tests__ Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -462,6 +462,9 @@ describe.each([
462
462
] ,
463
463
} ,
464
464
) ;
465
+ await act ( async ( ) => {
466
+ await new Promise ( resolve => setTimeout ( resolve , 0 ) ) ;
467
+ } ) ;
465
468
466
469
const fetches : Promise < any > [ ] = [ ] ;
467
470
const resolves : ( ( v : any ) => void ) [ ] = [ ] ;
@@ -493,7 +496,7 @@ describe.each([
493
496
} ) ,
494
497
) ;
495
498
await act ( async ( ) => {
496
- await new Promise ( resolve => setTimeout ( resolve , 0 ) ) ;
499
+ await new Promise ( resolve => setTimeout ( resolve , 1 ) ) ;
497
500
} ) ;
498
501
499
502
// second optimistic
@@ -607,6 +610,9 @@ describe.each([
607
610
] ,
608
611
} ,
609
612
) ;
613
+ await act ( async ( ) => {
614
+ await new Promise ( resolve => setTimeout ( resolve , 1 ) ) ;
615
+ } ) ;
610
616
611
617
const fetches : Promise < any > [ ] = [ ] ;
612
618
const resolves : ( ( v : any ) => void ) [ ] = [ ] ;
You can’t perform that action at this time.
0 commit comments