supertest
supertest copied to clipboard
Is it possible to add directly to the request with supertest?
In my project we use passport for authentication, and doing so allows us to access the account of the user making the request by saying req.account
. Is there a way in supertest that the same functionality can be achieved, so that an account
object can be appended to the request and read in the route for testing?
Any updates on this?