import { Test, TestingModule } from '@nestjs/testing'; import { RoleService } from './roles.service'; describe('RoleService', () => { let service: RoleService; beforeEach(async () => { const module: TestingModule = await Test.createTestingModule({ providers: [RoleService], }).compile(); service = module.get(RoleService); }); it('should be defined', () => { expect(service).toBeDefined(); }); });