【发布时间】:2020-10-23 06:59:33
【问题描述】:
在 NestJS 教程中,E2E 测试是使用导入的单个示例模块设置的。
这种模式似乎不适用于 typeORM 实体之间关系更复杂的应用程序。在广泛检查相关文件中有no inconsistencies in import statements 并且没有丢失TypeOrmModule.forFeature() 之后,我放弃并简单地导入了我的整个AppModule(我的应用程序的根模块——与NestJS 默认相同)。
【问题讨论】:
标签: jestjs linker-errors nestjs e2e-testing typeorm