@@ -857,17 +857,6 @@ describe('ReactInternalTestUtils console assertions', () => {
857
857
858
858
You must call one of the assertConsoleDev helpers between each act call."
859
859
` ) ;
860
- } else if ( gate ( flags => flags . enableOwnerStacks ) ) {
861
- expect ( message ) . toMatchInlineSnapshot ( `
862
- "asserConsoleLogsCleared(expected)
863
-
864
- console.log was called without assertConsoleLogDev:
865
- + Not asserted
866
- + Not asserted
867
- + Not asserted
868
-
869
- You must call one of the assertConsoleDev helpers between each act call."
870
- ` ) ;
871
860
} else {
872
861
expect ( message ) . toMatchInlineSnapshot ( `
873
862
"asserConsoleLogsCleared(expected)
@@ -937,20 +926,6 @@ describe('ReactInternalTestUtils console assertions', () => {
937
926
+ B
938
927
+ C
939
928
940
- You must call one of the assertConsoleDev helpers between each act call."
941
- ` ) ;
942
- } else if ( gate ( flags => flags . enableOwnerStacks ) ) {
943
- expect ( message ) . toMatchInlineSnapshot ( `
944
- "asserConsoleLogsCleared(expected)
945
-
946
- console.warn was called without assertConsoleWarnDev:
947
- + A%s,
948
- + in App (at **)
949
- + B%s,
950
- + in App (at **)
951
- + C%s,
952
- + in App (at **)
953
-
954
929
You must call one of the assertConsoleDev helpers between each act call."
955
930
` ) ;
956
931
} else {
@@ -959,16 +934,10 @@ describe('ReactInternalTestUtils console assertions', () => {
959
934
960
935
console.warn was called without assertConsoleWarnDev:
961
936
+ A%s,
962
- + in Yield (at **)
963
- + in div (at **)
964
937
+ in App (at **)
965
938
+ B%s,
966
- + in Yield (at **)
967
- + in div (at **)
968
939
+ in App (at **)
969
940
+ C%s,
970
- + in Yield (at **)
971
- + in div (at **)
972
941
+ in App (at **)
973
942
974
943
You must call one of the assertConsoleDev helpers between each act call."
@@ -1023,33 +992,6 @@ describe('ReactInternalTestUtils console assertions', () => {
1023
992
+ B
1024
993
+ C
1025
994
1026
- You must call one of the assertConsoleDev helpers between each act call."
1027
- ` ) ;
1028
- } else if ( gate ( flags => flags . enableOwnerStacks ) ) {
1029
- expect ( message ) . toMatchInlineSnapshot ( `
1030
- "asserConsoleLogsCleared(expected)
1031
-
1032
- console.log was called without assertConsoleLogDev:
1033
- + A
1034
- + B
1035
- + C
1036
-
1037
- console.warn was called without assertConsoleWarnDev:
1038
- + A%s,
1039
- + in App (at **)
1040
- + B%s,
1041
- + in App (at **)
1042
- + C%s,
1043
- + in App (at **)
1044
-
1045
- console.error was called without assertConsoleErrorDev:
1046
- + A%s,
1047
- + in App (at **)
1048
- + B%s,
1049
- + in App (at **)
1050
- + C%s,
1051
- + in App (at **)
1052
-
1053
995
You must call one of the assertConsoleDev helpers between each act call."
1054
996
` ) ;
1055
997
} else {
@@ -1063,30 +1005,18 @@ describe('ReactInternalTestUtils console assertions', () => {
1063
1005
1064
1006
console.warn was called without assertConsoleWarnDev:
1065
1007
+ A%s,
1066
- + in Yield (at **)
1067
- + in div (at **)
1068
1008
+ in App (at **)
1069
1009
+ B%s,
1070
- + in Yield (at **)
1071
- + in div (at **)
1072
1010
+ in App (at **)
1073
1011
+ C%s,
1074
- + in Yield (at **)
1075
- + in div (at **)
1076
1012
+ in App (at **)
1077
1013
1078
1014
console.error was called without assertConsoleErrorDev:
1079
1015
+ A%s,
1080
- + in Yield (at **)
1081
- + in div (at **)
1082
1016
+ in App (at **)
1083
1017
+ B%s,
1084
- + in Yield (at **)
1085
- + in div (at **)
1086
1018
+ in App (at **)
1087
1019
+ C%s,
1088
- + in Yield (at **)
1089
- + in div (at **)
1090
1020
+ in App (at **)
1091
1021
1092
1022
You must call one of the assertConsoleDev helpers between each act call."
@@ -1927,20 +1857,6 @@ describe('ReactInternalTestUtils console assertions', () => {
1927
1857
+ Not asserted
1928
1858
+ Not asserted
1929
1859
1930
- You must call one of the assertConsoleDev helpers between each act call."
1931
- ` ) ;
1932
- } else if ( gate ( flags => flags . enableOwnerStacks ) ) {
1933
- expect ( message ) . toMatchInlineSnapshot ( `
1934
- "asserConsoleLogsCleared(expected)
1935
-
1936
- console.warn was called without assertConsoleWarnDev:
1937
- + Not asserted%s,
1938
- + in Yield (at **)
1939
- + Not asserted%s,
1940
- + in Yield (at **)
1941
- + Not asserted%s,
1942
- + in Yield (at **)
1943
-
1944
1860
You must call one of the assertConsoleDev helpers between each act call."
1945
1861
` ) ;
1946
1862
} else {
@@ -1950,13 +1866,10 @@ describe('ReactInternalTestUtils console assertions', () => {
1950
1866
console.warn was called without assertConsoleWarnDev:
1951
1867
+ Not asserted%s,
1952
1868
+ in Yield (at **)
1953
- + in div (at **)
1954
1869
+ Not asserted%s,
1955
1870
+ in Yield (at **)
1956
- + in div (at **)
1957
1871
+ Not asserted%s,
1958
1872
+ in Yield (at **)
1959
- + in div (at **)
1960
1873
1961
1874
You must call one of the assertConsoleDev helpers between each act call."
1962
1875
` ) ;
@@ -2020,7 +1933,7 @@ describe('ReactInternalTestUtils console assertions', () => {
2020
1933
2021
1934
You must call one of the assertConsoleDev helpers between each act call."
2022
1935
` ) ;
2023
- } else if ( gate ( flags => flags . enableOwnerStacks ) ) {
1936
+ } else {
2024
1937
expect ( message ) . toMatchInlineSnapshot ( `
2025
1938
"asserConsoleLogsCleared(expected)
2026
1939
@@ -2034,26 +1947,6 @@ describe('ReactInternalTestUtils console assertions', () => {
2034
1947
2035
1948
You must call one of the assertConsoleDev helpers between each act call."
2036
1949
` ) ;
2037
- } else {
2038
- expect ( message ) . toMatchInlineSnapshot ( `
2039
- "asserConsoleLogsCleared(expected)
2040
-
2041
- console.error was called without assertConsoleErrorDev:
2042
- + A%s,
2043
- + in Yield (at **)
2044
- + in div (at **)
2045
- + in App (at **)
2046
- + B%s,
2047
- + in Yield (at **)
2048
- + in div (at **)
2049
- + in App (at **)
2050
- + C%s,
2051
- + in Yield (at **)
2052
- + in div (at **)
2053
- + in App (at **)
2054
-
2055
- You must call one of the assertConsoleDev helpers between each act call."
2056
- ` ) ;
2057
1950
}
2058
1951
} ) ;
2059
1952
@@ -2106,7 +1999,7 @@ describe('ReactInternalTestUtils console assertions', () => {
2106
1999
2107
2000
You must call one of the assertConsoleDev helpers between each act call."
2108
2001
` ) ;
2109
- } else if ( gate ( flags => flags . enableOwnerStacks ) ) {
2002
+ } else {
2110
2003
expect ( message ) . toMatchInlineSnapshot ( `
2111
2004
"asserConsoleLogsCleared(expected)
2112
2005
@@ -2133,45 +2026,6 @@ describe('ReactInternalTestUtils console assertions', () => {
2133
2026
2134
2027
You must call one of the assertConsoleDev helpers between each act call."
2135
2028
` ) ;
2136
- } else {
2137
- expect ( message ) . toMatchInlineSnapshot ( `
2138
- "asserConsoleLogsCleared(expected)
2139
-
2140
- console.log was called without assertConsoleLogDev:
2141
- + A
2142
- + B
2143
- + C
2144
-
2145
- console.warn was called without assertConsoleWarnDev:
2146
- + A%s,
2147
- + in Yield (at **)
2148
- + in div (at **)
2149
- + in App (at **)
2150
- + B%s,
2151
- + in Yield (at **)
2152
- + in div (at **)
2153
- + in App (at **)
2154
- + C%s,
2155
- + in Yield (at **)
2156
- + in div (at **)
2157
- + in App (at **)
2158
-
2159
- console.error was called without assertConsoleErrorDev:
2160
- + A%s,
2161
- + in Yield (at **)
2162
- + in div (at **)
2163
- + in App (at **)
2164
- + B%s,
2165
- + in Yield (at **)
2166
- + in div (at **)
2167
- + in App (at **)
2168
- + C%s,
2169
- + in Yield (at **)
2170
- + in div (at **)
2171
- + in App (at **)
2172
-
2173
- You must call one of the assertConsoleDev helpers between each act call."
2174
- ` ) ;
2175
2029
}
2176
2030
} ) ;
2177
2031
@@ -3052,20 +2906,6 @@ describe('ReactInternalTestUtils console assertions', () => {
3052
2906
+ Not asserted
3053
2907
+ Not asserted
3054
2908
3055
- You must call one of the assertConsoleDev helpers between each act call."
3056
- ` ) ;
3057
- } else if ( gate ( flags => flags . enableOwnerStacks ) ) {
3058
- expect ( message ) . toMatchInlineSnapshot ( `
3059
- "asserConsoleLogsCleared(expected)
3060
-
3061
- console.error was called without assertConsoleErrorDev:
3062
- + Not asserted%s,
3063
- + in Yield (at **)
3064
- + Not asserted%s,
3065
- + in Yield (at **)
3066
- + Not asserted%s,
3067
- + in Yield (at **)
3068
-
3069
2909
You must call one of the assertConsoleDev helpers between each act call."
3070
2910
` ) ;
3071
2911
} else {
@@ -3075,13 +2915,10 @@ describe('ReactInternalTestUtils console assertions', () => {
3075
2915
console.error was called without assertConsoleErrorDev:
3076
2916
+ Not asserted%s,
3077
2917
+ in Yield (at **)
3078
- + in div (at **)
3079
2918
+ Not asserted%s,
3080
2919
+ in Yield (at **)
3081
- + in div (at **)
3082
2920
+ Not asserted%s,
3083
2921
+ in Yield (at **)
3084
- + in div (at **)
3085
2922
3086
2923
You must call one of the assertConsoleDev helpers between each act call."
3087
2924
` ) ;
0 commit comments