Jest - Mock a function getting imported in a component file you're testing
I have a class component that I want to test using jest. That component is using a function getting imported from a utils file. How do I mock that imported function from my main test file?
Aucun commentaire:
Enregistrer un commentaire