apps/nestjs-backend/src/features/mail-sender/mail-sender.service.spec.ts
import type { TestingModule } from '@nestjs/testing';
import { Test } from '@nestjs/testing';
import { ConfigModule } from '../../configs/config.module';
import { MailSenderModule } from './mail-sender.module';
import { MailSenderService } from './mail-sender.service';
describe('MailSenderService', () => {
let service: MailSenderService;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
imports: [ConfigModule.register(), MailSenderModule.register()],
}).compile();
service = module.get<MailSenderService>(MailSenderService);
});
it('should be defined', async () => {
expect(service).toBeDefined();
});
});