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