@@ -546,6 +546,7 @@ describe('ReactHooksInspectionIntegration', () => {
546
546
function Foo ( props ) {
547
547
React . useTransition ( ) ;
548
548
const memoizedValue = React . useMemo ( ( ) => 'hello' , [ ] ) ;
549
+ React . useMemo ( ( ) => 'not used' , [ ] ) ;
549
550
return < div > { memoizedValue } </ div > ;
550
551
}
551
552
const renderer = ReactTestRenderer . create ( < Foo /> ) ;
@@ -566,6 +567,13 @@ describe('ReactHooksInspectionIntegration', () => {
566
567
value : 'hello' ,
567
568
subHooks : [ ] ,
568
569
} ,
570
+ {
571
+ id : 2 ,
572
+ isStateEditable : false ,
573
+ name : 'Memo' ,
574
+ value : 'not used' ,
575
+ subHooks : [ ] ,
576
+ } ,
569
577
] ) ;
570
578
} ) ;
571
579
@@ -1020,6 +1028,7 @@ describe('ReactHooksInspectionIntegration', () => {
1020
1028
( ) => { } ,
1021
1029
) ;
1022
1030
React . useMemo ( ( ) => 'memo' , [ ] ) ;
1031
+ React . useMemo ( ( ) => 'not used' , [ ] ) ;
1023
1032
return < div /> ;
1024
1033
}
1025
1034
const renderer = ReactTestRenderer . create ( < Foo /> ) ;
@@ -1040,6 +1049,13 @@ describe('ReactHooksInspectionIntegration', () => {
1040
1049
value : 'memo' ,
1041
1050
subHooks : [ ] ,
1042
1051
} ,
1052
+ {
1053
+ id : 2 ,
1054
+ isStateEditable : false ,
1055
+ name : 'Memo' ,
1056
+ value : 'not used' ,
1057
+ subHooks : [ ] ,
1058
+ } ,
1043
1059
] ) ;
1044
1060
} ) ;
1045
1061
@@ -1051,6 +1067,7 @@ describe('ReactHooksInspectionIntegration', () => {
1051
1067
( ) => 'snapshot' ,
1052
1068
) ;
1053
1069
React . useMemo ( ( ) => 'memo' , [ ] ) ;
1070
+ React . useMemo ( ( ) => 'not used' , [ ] ) ;
1054
1071
return value ;
1055
1072
}
1056
1073
@@ -1072,6 +1089,13 @@ describe('ReactHooksInspectionIntegration', () => {
1072
1089
value : 'memo' ,
1073
1090
subHooks : [ ] ,
1074
1091
} ,
1092
+ {
1093
+ id : 2 ,
1094
+ isStateEditable : false ,
1095
+ name : 'Memo' ,
1096
+ value : 'not used' ,
1097
+ subHooks : [ ] ,
1098
+ } ,
1075
1099
] ) ;
1076
1100
} ) ;
1077
1101
} ) ;
0 commit comments