@@ -287,7 +287,6 @@ describe('ReactFabric', () => {
287287 expect ( nativeFabricUIManager . completeRoot ) . toBeCalled ( ) ;
288288 } ) ;
289289
290- // @gate enablePersistedModeClonedFlag
291290 it ( 'should not clone nodes when layout effects are used' , async ( ) => {
292291 const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
293292 validAttributes : { foo : true } ,
@@ -305,6 +304,8 @@ describe('ReactFabric', () => {
305304 < ComponentWithEffect />
306305 </ View > ,
307306 11 ,
307+ null ,
308+ true ,
308309 ) ,
309310 ) ;
310311 expect ( nativeFabricUIManager . completeRoot ) . toBeCalled ( ) ;
@@ -316,6 +317,8 @@ describe('ReactFabric', () => {
316317 < ComponentWithEffect />
317318 </ View > ,
318319 11 ,
320+ null ,
321+ true ,
319322 ) ,
320323 ) ;
321324 expect ( nativeFabricUIManager . cloneNode ) . not . toBeCalled ( ) ;
@@ -327,7 +330,6 @@ describe('ReactFabric', () => {
327330 expect ( nativeFabricUIManager . completeRoot ) . not . toBeCalled ( ) ;
328331 } ) ;
329332
330- // @gate enablePersistedModeClonedFlag
331333 it ( 'should not clone nodes when insertion effects are used' , async ( ) => {
332334 const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
333335 validAttributes : { foo : true } ,
@@ -345,6 +347,8 @@ describe('ReactFabric', () => {
345347 < ComponentWithRef />
346348 </ View > ,
347349 11 ,
350+ null ,
351+ true ,
348352 ) ,
349353 ) ;
350354 expect ( nativeFabricUIManager . completeRoot ) . toBeCalled ( ) ;
@@ -356,6 +360,8 @@ describe('ReactFabric', () => {
356360 < ComponentWithRef />
357361 </ View > ,
358362 11 ,
363+ null ,
364+ true ,
359365 ) ,
360366 ) ;
361367 expect ( nativeFabricUIManager . cloneNode ) . not . toBeCalled ( ) ;
@@ -367,7 +373,6 @@ describe('ReactFabric', () => {
367373 expect ( nativeFabricUIManager . completeRoot ) . not . toBeCalled ( ) ;
368374 } ) ;
369375
370- // @gate enablePersistedModeClonedFlag
371376 it ( 'should not clone nodes when useImperativeHandle is used' , async ( ) => {
372377 const View = createReactNativeComponentClass ( 'RCTView' , ( ) => ( {
373378 validAttributes : { foo : true } ,
@@ -387,6 +392,8 @@ describe('ReactFabric', () => {
387392 < ComponentWithImperativeHandle ref = { ref } />
388393 </ View > ,
389394 11 ,
395+ null ,
396+ true ,
390397 ) ,
391398 ) ;
392399 expect ( nativeFabricUIManager . completeRoot ) . toBeCalled ( ) ;
@@ -399,6 +406,8 @@ describe('ReactFabric', () => {
399406 < ComponentWithImperativeHandle ref = { ref } />
400407 </ View > ,
401408 11 ,
409+ null ,
410+ true ,
402411 ) ,
403412 ) ;
404413 expect ( nativeFabricUIManager . cloneNode ) . not . toBeCalled ( ) ;
0 commit comments