supertest icon indicating copy to clipboard operation
supertest copied to clipboard

Is it possible to add directly to the request with supertest?

Open darthzeran opened this issue 4 years ago • 1 comments

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?

darthzeran avatar Dec 09 '20 04:12 darthzeran

Any updates on this?

benjaminhera avatar Jul 27 '23 11:07 benjaminhera