React |Testing in React | Question 4

Last Updated :
Discuss
Comments

Which Jest method is used to check whether a function was called?

toHaveBeenCalled()

toHaveBeenTriggered()

toHaveBeenExecuted()

toHaveBeenInvoked()

Share your thoughts in the comments