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