Add a test with getRepositoryToken
OSA413 opened this issue · comments
Is there an existing issue that is already proposing this?
- I have searched the existing issues
Is your feature request related to a problem? Please describe it
This repository features many e2e tests. Unfortunately none of them provide an example of repository usage inside the test itself. That would be useful for others to quickly find that it's possible to get repositories from the module for tests.
Describe the solution you'd like
Apparently there are two tests in the main repository that features such functionality:
https://github.com/nestjs/nest/blob/master/sample/05-sql-typeorm/src/users/users.service.spec.ts#L45
https://github.com/nestjs/nest/blob/master/sample/13-mongo-typeorm/src/photo/photo.service.spec.ts#L40
Maybe it's possible to copy the tests to this repository since it was the first place that I tried to search for such thing, then I found it there.
Teachability, documentation, adoption, migration strategy
This will make such information less hidden from the users.
What is the motivation / use case for changing the behavior?
Described it above
This will make such information less hidden from the users.
you know that the getRepositoryToken
is already mentioned in the docs site, right?