- Reading more blogs about Jest.
- 3 ways to mock
- jest.fn(), used to mock a function
- jest.mock(), used to mock entire modules
- jest.spyOn(), used to either watch a function and exposes extra meta data about how, when, times etc a function/method was called