Which of the following is used to mock a function in Jest?
jest.fn()
mockFunction()
spyOn()
jest.mock()
This question is part of this quiz :