@@ -335,6 +335,7 @@ describe('ReactMultiChildReconcile', () => {
335
335
let statusDisplays = parentInstance . getStatusDisplays ( ) ;
336
336
const startingInternalState = statusDisplays . jcw . getInternalState ( ) ;
337
337
338
+ // Now remove the child.
338
339
await act ( ( ) => {
339
340
root . render (
340
341
< FriendsStatusDisplay prepareChildren = { prepareChildrenArray } /> ,
@@ -344,6 +345,7 @@ describe('ReactMultiChildReconcile', () => {
344
345
statusDisplays = parentInstance . getStatusDisplays ( ) ;
345
346
expect ( statusDisplays . jcw ) . toBeFalsy ( ) ;
346
347
348
+ // Now reset the props that cause there to be a child
347
349
await act ( ( ) => {
348
350
root . render (
349
351
< FriendsStatusDisplay
@@ -388,6 +390,7 @@ describe('ReactMultiChildReconcile', () => {
388
390
let statusDisplays = parentInstance . getStatusDisplays ( ) ;
389
391
const startingInternalState = statusDisplays . jcw . getInternalState ( ) ;
390
392
393
+ // Now remove the child.
391
394
await act ( ( ) => {
392
395
root . render (
393
396
< FriendsStatusDisplay
@@ -399,6 +402,7 @@ describe('ReactMultiChildReconcile', () => {
399
402
statusDisplays = parentInstance . getStatusDisplays ( ) ;
400
403
expect ( statusDisplays . jcw ) . toBeFalsy ( ) ;
401
404
405
+ // Now reset the props that cause there to be a child
402
406
await act ( ( ) => {
403
407
root . render (
404
408
< FriendsStatusDisplay
@@ -443,6 +447,7 @@ describe('ReactMultiChildReconcile', () => {
443
447
let statusDisplays = parentInstance . getStatusDisplays ( ) ;
444
448
const startingInternalState = statusDisplays . jcw . getInternalState ( ) ;
445
449
450
+ // Now remove the child.
446
451
await act ( ( ) => {
447
452
root . render (
448
453
< FriendsStatusDisplay
@@ -454,6 +459,7 @@ describe('ReactMultiChildReconcile', () => {
454
459
statusDisplays = parentInstance . getStatusDisplays ( ) ;
455
460
expect ( statusDisplays . jcw ) . toBeFalsy ( ) ;
456
461
462
+ // Now reset the props that cause there to be a child
457
463
await act ( ( ) => {
458
464
root . render (
459
465
< FriendsStatusDisplay
0 commit comments