title: Mocking Passport.js (local strategy) in a unit test
body: <p>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 an authenticated/unauthenticated user hitting the API.</p>
  
  <p>What would be the most efficient way of doing this?</p>