@@ -6488,11 +6488,15 @@ describe('ReactDOMFizzServer', () => {
64886488 } ) ;
64896489 } ) ;
64906490
6491- expect ( recoverableErrors ) . toEqual ( [
6492- 'server error' ,
6493- 'replay error' ,
6494- 'server error' ,
6495- ] ) ;
6491+ expect ( recoverableErrors ) . toEqual (
6492+ __DEV__
6493+ ? [ 'server error' , 'replay error' , 'server error' ]
6494+ : [
6495+ 'The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.' ,
6496+ 'The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.' ,
6497+ 'The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.' ,
6498+ ] ,
6499+ ) ;
64966500 expect ( getVisibleChildren ( container ) ) . toEqual (
64976501 < div >
64986502 { 'Hello' }
@@ -6642,10 +6646,17 @@ describe('ReactDOMFizzServer', () => {
66426646
66436647 expect ( prerenderErrors ) . toEqual ( [ ] ) ;
66446648 expect ( ssrErrors ) . toEqual ( [ 'aborted' , 'aborted' ] ) ;
6645- expect ( recoverableErrors ) . toEqual ( [
6646- 'The server did not finish this Suspense boundary: aborted' ,
6647- 'The server did not finish this Suspense boundary: aborted' ,
6648- ] ) ;
6649+ expect ( recoverableErrors ) . toEqual (
6650+ __DEV__
6651+ ? [
6652+ 'The server did not finish this Suspense boundary: aborted' ,
6653+ 'The server did not finish this Suspense boundary: aborted' ,
6654+ ]
6655+ : [
6656+ 'The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.' ,
6657+ 'The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.' ,
6658+ ] ,
6659+ ) ;
66496660 } ) ;
66506661
66516662 // @gate enablePostpone
@@ -6806,10 +6817,17 @@ describe('ReactDOMFizzServer', () => {
68066817 'replay error' ,
68076818 'replay error' ,
68086819 ] ) ;
6809- expect ( recoverableErrors ) . toEqual ( [
6820+ expect ( recoverableErrors ) . toEqual (
68106821 // It surfaced in two different suspense boundaries.
6811- 'The server did not finish this Suspense boundary: replay error' ,
6812- 'The server did not finish this Suspense boundary: replay error' ,
6813- ] ) ;
6822+ __DEV__
6823+ ? [
6824+ 'The server did not finish this Suspense boundary: replay error' ,
6825+ 'The server did not finish this Suspense boundary: replay error' ,
6826+ ]
6827+ : [
6828+ 'The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.' ,
6829+ 'The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.' ,
6830+ ] ,
6831+ ) ;
68146832 } ) ;
68156833} ) ;
0 commit comments