After updating TypeORM to version 0.3.12 and @nestjs/typeorm to version 9.0.1, I followed the recommended approach outlined here.
I adjusted all my custom repositories accordingly, but simply moving dependencies into the providers metadata of the createTestingModule
doesn't seem to be sufficient.
The line
dailyTaskRepository = module.get<TypeOrmDailyTaskRepository>(TypeOrmDailyTaskRepository)
may be outdated, leaving me unsure how to retrieve the provider from the module.
Below is the full code:
daily-task.typeorm.inte.ts
(insert modified code here)
The console error message reads:
(insert console error message here)