jest

async authenticateUser(user: LoginUserDto) { const existingUser = await this.usersRepository.findUserByEmail(user.email); if (!existingUser) { throw new UnauthorizedException('Email이 존재하지 않습니다.'); } const isMatch = await bcrypt.compare(user.password, existingUser.password); if (!isMatch) { throw new UnauthorizedException('비밀번호가 일치하지 않습니다.'); } return existingUser; ..
Test하려는 코드  private parseOrderFilter(key: string, value: any): FindOptionsOrder { const order: FindOptionsOrder = {}; const split = key.split('__'); if (split.length !== 2) { throw new BadRequestException( `order 필터는 '__'로 split 했을 때 길이가 2여야 합니다. - 문제되는 키값 : ${key}`, ); } const [_, field] = split; order[field] = va..
전호영
'jest' 태그의 글 목록