How To Do Manual Mock In Jest Unit Testing
A much powerful but uncommon way of mocking service in jest unit test
3 min readDec 15, 2019
Jest has two ways to mock functions: Either by creating a mock function to use in test code or writing a manual mock
to override a module dependency. Today I am going to demonstrate how to use manual mock.