Skip to content

Conversation

leesm0218
Copy link
Owner

요약

변경 사항

체크리스트

  • 이해하기 어려운 코드에는 주석을 추가했습니다
  • 관련 문서를 수정했습니다
  • 새로운 경고가 발생하지 않습니다
  • 수정한 기능 또는 추가한 기능에 대해 테스트를 작성했습니다
  • 의존성 있는 변경 사항이 병합 및 배포되었습니다

관련 이슈

리뷰 반영 사항

선택 항목 펼치기

스크린샷

테스트 방법

리뷰어 참고사항

Copy link

@smileboy0014 smileboy0014 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

리뷰 남겼습니다!

user_id: requestDto.userId,
is_deleted: false,
},
data: { is_deleted: true, updated_at: new Date() },

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
data: { is_deleted: true, updated_at: new Date() },
data: { is_deleted: true },

updated_at 은 어차피 db에서 자동으로 업데이트 될때마다 넣어주기 때문에 업데이트를 안하셔도 될 것 같습니다.

model User {
  user_id       BigInt         @id @default(autoincrement())
  nickname      String?
  email         String?
  provider      Provider?
  is_deleted    Boolean?       @default(false)
  created_at    DateTime       @default(now())
  updated_at    DateTime       @updatedAt
  subscriptions Subscription[]
  tokens        Token[]
  notifications Notification[]

  @@unique([provider, email])
  @@map("user")
}

where: {
user_id: requestDto.userId,
},
data: { refresh_token: '', updated_at: new Date() },

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
data: { refresh_token: '', updated_at: new Date() },
data: { refresh_token: '' },

위와 코멘트는 동일합니다 :)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

파일명을 signout.spec.ts -> signout.e2e-spec.ts로 바꾸셔야 할 것 같습니다.
지금하신건, 단위테스트가 아닌 통합테스트(or e2e)테스트로 보입니다!
테스트 코드도 지금 작성하신게 환경에 따라 결과가 다르게 나올 것 같습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants