Martin Adámek

Results 768 comments of Martin Adámek

Can you please provide a complete repro as a github repo?

Looks like this is a problem with jest itself, see https://github.com/jestjs/jest/issues/11607#issuecomment-877076592 for a possible workaround.

Can you please provide a complete repro as a GH repository? Have you tried it without `ncc`? Could be some issue in there rather than here, since things seem to...

> The reproduction above is complete (package.json, tsconfig.json, reproduction.ts). You'd find nothing more in a repository. The only thing that can be added is any MongoDB v3 instance which can...

Thanks! Maybe this one is related? https://github.com/vercel/ncc/issues/776

You keep talking about `@mikro-orm/nestjs` v5.1.2, but this package hasn't been released for quite some time, so I guess you mean the ORM packages, not the nest adapter?

Oh ok, so the problem is in this package. I was suspecting some changes I did in v5.7.13 released a few days ago. Will try to look into this later...

> Is passing the scope property to the forRootAsync the proper way? I am not sure if that would help, it controls the nestjs DI scopes, and since there are...

The second test is missing `forFeature` call, which registers the repositories to the DI. If you import that in the `MongoModule` where you are using it, then it starts to...

The thing is I am not completely sure how it is supposed to be working in nest di, it's been years since I used it in an actual project (same...