import { Test, TestingModule } from '@nestjs/testing'; import { TopicController } from './topic.controller'; describe('Topic Controller', () => { let controller: TopicController; beforeEach(async () => { const module: TestingModule = await Test.createTestingModule({ controllers: [TopicController], }).compile(); controller = module.get(TopicController); }); it('should be defined', () => { expect(controller).toBeDefined(); }); });