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