React |Testing in React | Question 3

Last Updated :
Discuss
Comments

Which of the following is used to mock a function in Jest?

jest.fn()

mockFunction()

spyOn()

jest.mock()

Share your thoughts in the comments