teableio/teable

View on GitHub
apps/nestjs-backend/src/features/mail-sender/mail-sender.service.spec.ts

Summary

Maintainability
A
0 mins
Test Coverage
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();
  });
});