import { Test , TestingModule } from "@nestjs/testing" ; import { ZENDESK_TOKEN } from "nestjs-zendesk" ; import { ZendeskService } from "./zendesk.service" ; describe ( "ZendeskService" , ( ) => { let service ; beforeEach ( async ( ) => { const module = await Test . createTestingModule ( { providers : [ ZendeskService , { provide : ZENDESK_TOKEN , useFactory : jest . fn ( ) , } , ] , } ) . compile ( ) ; service = module . get < ZendeskService > ( ZendeskService ) ; } ) ; it ( "should be defined" , ( ) => expect ( service ) . toBeDefined ( ) ) ; } ) ;