I have learned to test my code with Mocha and Node and I have no problem with this because always I'm testing functions. But, If I want to test a component which is an object with his constructor, componentDidMount, render functions ... How do you do this tests?
Which is the best way to test this components which are objects?
Any example of how to make this tests?
Aucun commentaire:
Enregistrer un commentaire