I would like to know how to make event handler function be mock in react and react testing library.
For example, in the following source code, when a button is clicked, a