mardi 20 août 2019

how do I know a react component is done processing lifecycle callbacks and ready for interaction in my test?

Need a way to wait until all react callbacks have been processed for a react component

I am working on an interaction test for a react component. When I setup or update my app, the react component goes through a rendering cycle. So before I dispatch interaction events, I need wait for all the callbacks to be successfully processed and the component be settled. Is there is a good way to do such waiting in the test

Aucun commentaire:

Enregistrer un commentaire