import React from 'react' ; window . scrollTo = jest . fn ( ) ; jest . mock ( '@elastic/eui' , ( ) => { const original = jest . requireActual ( '@elastic/eui' ) ; return { ... original , EuiComboBox : ( props ) => ( < input data - test - subj = { props [ 'data-test-subj' ] || 'mockComboBox' } data - currentvalue = { props . selectedOptions } onChange = { async ( syntheticEvent ) => { props . onChange ( [ syntheticEvent [ '0' ] ] ) ; } } />), EuiIcon : 'eui-icon' , } ; } ) ;