import { Test, TestingModule } from '@nestjs/testing'; import { ProjectsService } from './projects.service'; import { getRepositoryToken } from '@nestjs/typeorm'; import { Project } from './project.entity'; import { AmqpConnection } from '@golevelup/nestjs-rabbitmq'; describe('ProjectsService', () => { let service: ProjectsService; beforeEach(async () => { const module: TestingModule = await Test.createTestingModule({ providers: [ ProjectsService, { provide: getRepositoryToken(Project), useValue: {}, }, { provide: AmqpConnection, useValue: {}, }, ], }).compile(); service = module.get(ProjectsService); }); it('should be defined', () => { expect(service).toBeDefined(); }); });