Skip to content
Snippets Groups Projects
auth.service.spec.ts 446 B
Newer Older
  • Learn to ignore specific revisions
  • import { Test, TestingModule } from '@nestjs/testing';
    import { AuthService } from './auth.service';
    
    describe('AuthService', () => {
      let service: AuthService;
    
      beforeEach(async () => {
        const module: TestingModule = await Test.createTestingModule({
          providers: [AuthService],
        }).compile();
    
        service = module.get<AuthService>(AuthService);
      });
    
      it('should be defined', () => {
        expect(service).toBeDefined();
      });
    });