mfncooper / mockery

Simplifying the use of mocks with Node.js
Other
1.1k stars 60 forks source link

More detailed explanation of module argument #75

Open ka-tsu-ra opened 3 years ago

ka-tsu-ra commented 3 years ago

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.