Most voted "enzyme" questions
1 question
Sort by count of
-
0
votes0
answers10
viewsEnzyme - Check whether a function of a Functional Component has been called
I have an React project that had unit tests with Jest and Enzyme. Inside the component I want to create a unit test, I need to know if an internal function (myFunction in the example below) of the…