Closed takehilo closed 7 years ago
A simple way is just adding locals
property but are there any other ways to do this?
const res = httpMocks.createResponse();
res.locals = {};
Hopefully, version 1.6.2 will solve your problem.
Version 1.6.6 si still missing this feature
Version > 1.6.6 should have this fixed
My production code is like the following:
How can I set
res.locals
usinghttpMocks.createResponse
? It would be nice if I could set any property ashttpMocks.createRequest
does:Thank you.