Closed witalobenicio closed 1 month ago
I'm having the same issue when running vitest or jest, on dev mode it works. Any ideas why?
@jonatasdaniel the problem is in the metadata generator. Some typescript compilers doesn't work well with annotations. I had to move to ts-node
and ts-node-dev
. I was using tsc
before that.
@jonatasdaniel the problem is in the metadata generator. Some typescript compilers doesn't work well with annotations. I had to move to
ts-node
andts-node-dev
. I was usingtsc
before that.
but on my case it only happens when I run my specs with vitest or jest, on dev mode it works. I switched to inversifyjs and it works fine.
You need to check what jest is using to compile your ts code.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Description
When injecting multiple Services inside the constructor params, the first param is a ContainerInstance, and the others are undefined.
Minimal code-snippet showcasing the problem
My tsconfig:
Expected behavior
Each service should be an instance of the declared class.
Actual behavior
Already explained before.