import { Test , TestingModule } from '@nestjs/testing' ; import { NotificationController } from './notification.controller' ; import { NotificationService } from './notification.service' ; describe ( 'Notification Controller' , ( ) => { let module ; beforeAll ( async ( ) => { module = await Test . createTestingModule ( { controllers : [ NotificationController ] , providers : [ { provide : NotificationService , useValue : { } , } , ] , } ) . compile ( ) ; } ) ; it ( 'should be defined' , ( ) => { const controller = module . get < NotificationController > ( NotificationController ) ; expect ( controller ) . toBeDefined ( ) ; } ) ; } ) ;