What's the difference between `jest.mock()` and `jest.spyOn()`?

Intermediate Premium

Answer

Premium Content

Unlock this answer and gain access to all premium interview questions.

Upgrade to Premium