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