mockery
mockery copied to clipboard
More detailed explanation of module argument
Specifying the exact location of the require whose argument needs to be matched exactly. Quite easy to get this wrong if you're refactoring a test that initially didn't use mockery, so you initially were requiring the module to be mocked in the test file itself.