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