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