I am using the local strategy of Passport.js to authenticate users for my API. I am writing tests for this API, and I need a way of mocking Passport.js in the tests to simulate
A bit late, but I did mock passport.js in a project and created a gist with a basic howto. Should work fine (I used passport version ~0.1.16).