mardi 5 février 2019

What is the proper way to test if a specific function returns undefined in React?

I'm familiar with react, but I've never done testing before. I want to traverse all my react components to test all cases of a specific function to see whether or not it returns undefined. If it is undefined, I want the test to fail. What is the proper way to do this?

Aucun commentaire:

Enregistrer un commentaire