You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @YegorZaremba ,
I am working on project with node,typeorm and my sql.I need to write unit test case for api's.we followed your sample project.But in my projects we have used query builder as follow
async checkMobilenumber(mobile:string){
let result : any = null;
try {
result = await getManager()
.getRepository(User)
.createQueryBuilder('user')
.where('user.mobile = :mobile')
.setParameters({ mobile: mobile })
.getOne();
} catch (error) {
logger.error('Error while execute query : ', error);
throw error;
}
return result;
};
I am requesting could you please help me how to write unit test case for above sample code.
The text was updated successfully, but these errors were encountered:
Hi @YegorZaremba ,
I am working on project with node,typeorm and my sql.I need to write unit test case for api's.we followed your sample project.But in my projects we have used query builder as follow
I am requesting could you please help me how to write unit test case for above sample code.
The text was updated successfully, but these errors were encountered: