@@ -287,6 +287,10 @@ describe('ReactIncrementalErrorHandling', () => {
287287 'commit' ,
288288 'commit' ,
289289 ] ) ;
290+ assertConsoleErrorDev ( [
291+ 'Error: There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.' +
292+ '\n in <stack>' ,
293+ ] ) ;
290294 expect ( ReactNoop ) . toMatchRenderedOutput (
291295 < span prop = "Everything is fine." /> ,
292296 ) ;
@@ -339,6 +343,10 @@ describe('ReactIncrementalErrorHandling', () => {
339343 'commit' ,
340344 'commit' ,
341345 ] ) ;
346+ assertConsoleErrorDev ( [
347+ 'Error: There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.' +
348+ '\n in <stack>' ,
349+ ] ) ;
342350 // This should not include the offscreen content
343351 expect ( ReactNoop ) . toMatchRenderedOutput (
344352 < >
@@ -1786,6 +1794,10 @@ describe('ReactIncrementalErrorHandling', () => {
17861794 } ) ;
17871795
17881796 // Should finish without throwing.
1797+ assertConsoleErrorDev ( [
1798+ 'Error: There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.' +
1799+ '\n in <stack>' ,
1800+ ] ) ;
17891801 expect ( root ) . toMatchRenderedOutput ( 'Everything is fine.' ) ;
17901802 } ) ;
17911803
@@ -1832,6 +1844,10 @@ describe('ReactIncrementalErrorHandling', () => {
18321844 } ) ;
18331845 // Should render the final state without throwing the error.
18341846 assertLog ( [ 'Everything is fine.' ] ) ;
1847+ assertConsoleErrorDev ( [
1848+ 'Error: There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.' +
1849+ '\n in <stack>' ,
1850+ ] ) ;
18351851 expect ( root ) . toMatchRenderedOutput ( 'Everything is fine.' ) ;
18361852 } ) ;
18371853
0 commit comments