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