-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ 숨김 및 신고 테스트 추가 및 기존 테스트 리팩토링 #73
Conversation
This pull request is automatically being deployed by Amplify Hosting (learn more). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고 많으셨습니다. 병합하셔도 좋습니다.
테스트 적용에 대해서는 저 역시도 통합 테스트를 함께 진행하면서 개발하기 보다, 우선 기능개발과 함께 해당 기능에 따른 단위 테스트 코드를 작성하고 추후에 통합 테스트를 적용하는 것이 생산성 면에서 좀 더 효율적이라고 생각합니다!
작업 이유
작업 사항
1️⃣ Mutation 응답 데이터 반환
2️⃣ 테스트 환경 설정 수정
이전에 발생하였던 React Query와 관련한 이슈를 추적한 결과 API 인터셉터가 등록되어 있지 않아, 이를 감지하지 못하고 발생한 문제였습니다. 해당 문제를 해결하기 위해 피드, 댓글 등의 handler를 테스트 서버에도 추가해주었습니다.
3️⃣ 기존 테스트 코드 파일 명 수정 (컨벤션 적용)
FeedMainList.test.tsx -> FeedMainList.integration.test.tsx
FeedMainList.error.test.tsx -> FeedMainList.integration.error.test.tsx
useInfinityFeeds.unit.test.tsx ✨ 무한 스크롤 단위 테스트 추가
useLikes -> useLikes.unit.test.tsx
useBookmarks.test.tsx -> useBookmarks.unit.test.tsx
4️⃣ 숨김 및 신고 테스트 코드 추가
5️⃣ 신고하기 API 응답 데이터 추가
리뷰어가 중점적으로 확인해야 하는 부분
발견한 이슈