import { Test, TestingModule } from '@nestjs/testing'; import { AppController } from './app.controller'; import { AppService } from './app.service'; describe('AppController', () => { let appController: AppController; beforeEach(async () => { const app: TestingModule = await Test.createTestingModule({ controllers: [AppController], providers: [AppService], }).compile(); appController = app.get(AppController); }); describe('root', () => { it('should return status object', () => { const result = appController.getStatus(); expect(result).toHaveProperty('message', '🐴 GoHorseJobs Backoffice API is running!'); expect(result).toHaveProperty('version', '1.0.0'); }); }); });