How to test using passport-auth0 strategy

Hi, totally new to auth0 here. My team for a school project used passport-auth0 for its authentication: login, signup, and session cookies. The tutorial we followed is:

and sort of by extension:

Now for the last part of our assignment, we have to perform unit testing, and are aiming for good test coverage. We’re using mocha and chai-http to write our backend tests, and would like to test the authentication routes (login, logout, current-session, callback), but I’ve found few resources that work for programmatically logging a user in through passport-auth0 strategy. Any help to do this would be greatly appreciated.

Hey there!

Unfortunately we don’t have specific guidance for testing for this part of the stack only general content on performing tests: