Closed xxluke closed 5 years ago
Working on this https://github.com/nestjs/nest/pull/2387
Remove package-lock.json
, install packages and I can see it works
This is still not working in NestJS 6.6.4 even though all linked issues/pull requests are closed/merged.
@xxluke you should use await app.resolve()
instead of app.get()
Bug Report
Current behavior
After setting a service to the scope "Request", tests which use this service will fail with a message like
TypeError: Cannot read property 'getHello' of undefined
.Input Code
Example repo: https://github.com/xxluke/nestjs-typescript-starter
I changed the code of the service to this:
Expected behavior
No errors.
Environment