The following is part of my render function in React.
//some code <div className='icon-container> <Icon name='close' /> </div>
While testing this, I have mounted my component. I would like to specifically select the Icon component within my icon-container div. How do I do that ?
Note: There could be multiple Icons rendered while mounting in jest. Hence I require specificity. Also, I cannot use shallow since I would like to test the HOC functionality wrapped over the component.
Aucun commentaire:
Enregistrer un commentaire