import React from 'react' ; jest . mock ( 'react-virtualized' , ( ) => { const original = jest . requireActual ( 'react-virtualized' ) ; return { ... original , AutoSizer : ( { children } ) => ( < div > { children ( { height : 500 , width : 500 } ) } < /div>), } ; } ) ;