import { Test, TestingModule } from '@nestjs/testing' import { PlayersController } from './players.controller' import { PlayersService } from './players.service' describe('PlayersController', () => { let controller: PlayersController beforeEach(async () => { const module: TestingModule = await Test.createTestingModule({ controllers: [PlayersController], providers: [PlayersService], }).compile() controller = module.get(PlayersController) }) it('should be defined', () => { expect(controller).toBeDefined() }) })