import { Test, TestingModule } from '@nestjs/testing'; import { AuthService } from './auth.service'; import { TokenService } from './token.service'; import { UserService } from 'src/core/user/user.service'; describe('AuthService', () => { let service: AuthService; beforeEach(async () => { const module: TestingModule = await Test.createTestingModule({ providers: [ AuthService, { provide: TokenService, useValue: {}, }, { provide: UserService, useValue: {}, }, ], }).compile(); service = module.get(AuthService); }); it('should be defined', () => { expect(service).toBeDefined(); }); });