File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
packages/react-reconciler/src/__tests__ Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -497,21 +497,5 @@ describe('memo', () => {
497
497
expect ( root ) . toMatchRenderedOutput ( '1' ) ;
498
498
} ) ;
499
499
} ) ;
500
-
501
- it ( 'inner component of react memo should have _debugOwner set' , async ( ) => {
502
- const InComponent = React . forwardRef ( ( props , ref ) => < div ref = { ref } /> ) ;
503
- const Outer = React . memo ( InComponent ) ;
504
- const App = ( ) => {
505
- const ref = React . createRef ( ) ;
506
- return < Outer ref = { ref } > Click me! </ Outer > ;
507
- } ;
508
- ReactNoop . render ( < App /> ) ;
509
- expect ( Scheduler ) . toFlushWithoutYielding ( ) ;
510
- const innerFiber = ReactNoop . getRoot ( ) . current . child . child . child ;
511
- const innerFiberOwner = innerFiber . _debugOwner ;
512
- expect ( innerFiber . type . $$typeof ) . toBe ( Symbol . for ( 'react.forward_ref' ) ) ;
513
- expect ( innerFiberOwner ) . not . toBeNull ( ) ;
514
- expect ( innerFiberOwner . type . $$typeof ) . toBe ( Symbol . for ( 'react.memo' ) ) ;
515
- } ) ;
516
500
}
517
501
} ) ;
You can’t perform that action at this time.
0 commit comments