apps/nestjs-backend/src/features/oauth/oauth.service.spec.ts
import type { TestingModule } from '@nestjs/testing';
import { Test } from '@nestjs/testing';
import { GlobalModule } from '../../global/global.module';
import { OAuthModule } from './oauth.module';
import { OAuthService } from './oauth.service';
describe('OauthService', () => {
let service: OAuthService;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
imports: [GlobalModule, OAuthModule],
providers: [OAuthService],
}).compile();
service = module.get<OAuthService>(OAuthService);
});
it('should be defined', () => {
expect(service).toBeDefined();
});
});