Questions tagged [inversify-express-utils]
6 questions
0
votes
0 answers
Inversify Express Utils - Middleware does not work outside the controller
Wanted to try out this inversify-express-utils package to save time when writing express code. But now, when using the try-catch block to catch the ValidationError() thrown inside the LoginReqDto should technically be caught by the middleware inside…

Rudr Thakur
- 330
- 3
- 12
0
votes
0 answers
Inversify-Express-Utils Decorator @requestBody not working
Trying to validate the request through the DTO by calling the @requestBody annotation at the controller route.
Controller Method -
@httpPost('/login')
public async login(@request() req: Request, @response() res: Response, @requestBody() body:…

Rudr Thakur
- 330
- 3
- 12
0
votes
0 answers
Jest comparison failing when it should pass
I have a problem with testing my inversify-express-utils controller using jest in my typescript node app. As far as i can tell the test is failing when it should pass, the test is behaving as if I am calling expect(expected).toStrictEqual(actual)…

Ben Robinson
- 21,601
- 5
- 62
- 79
0
votes
0 answers
Making parent controller as base router path for a particular module in inversify express.js
I have multiple modules and want to club them under one route path based on…

Mr X
- 1,637
- 3
- 29
- 55
0
votes
0 answers
Socket Not working if we import controller from inversify but if we import the controller from inversify-socket-util it is work
Socket Not working if we import controller from inversify but if we import the controller from inversify-socket-util it is works.
unable to apply middleware in controller if we import controller from inversify-socket-util
not works rest of the…
-1
votes
1 answer
Inversify - Http Context is always an empty object
i hope you can help me, i'm trying to build an API using inversify and inversify-express-utils. So, I already created my controllers and the API is working fine and no problems so far, but when I try to access to the httpContext property that comes…

Danny López
- 9
- 4