import { INestApplication } from '@nestjs/common'; import { Test, TestingModule } from '@nestjs/testing'; import ormConfig from '../../config/orm.config'; import { TypeOrmCoreModule } from "@nestjs/typeorm/dist/typeorm-core.module"; import { <%= classify(name) %>Module } from './<%= name %>.module.ts' describe('', () => { let app: INestApplication; beforeAll(async () => { const module: TestingModule = await Test.createTestingModule({ imports: [<%= classify(name) %>Module , TypeOrmCoreModule.forRoot(ormConfig())], }).compile(); app = module.createNestApplication(); await app.init(); }); });