Conversation
Closed
2 tasks
KimGiii
approved these changes
Jun 27, 2025
VarGun
approved these changes
Jun 28, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 연관된 이슈 번호
🌱 주요 변경 사항
1️⃣ [getMonthlyReturns] 테스트
테스트 목적
Mock 구성 요소
✅ 테스트 요약
Case 1 – 로그인하지 않은 경우
Case 2 – ISA 계좌가 없는 경우
Case 3 – 평가수익 0원
Case 4 – 평가수익 존재
Case 5 – 수익률 수식 검증
수익률 = (E - B - C) / (B + 0.5 * C)mocking된 entireProfit값을 수식값과 비교하는 테스트
Case 5: ETF만 있는 경우
Case 6: 일반만 있는 경우
Case 7: 여러 ETF 스냅샷
2️⃣ [getIsaPortfolio] 테스트
테스트 목적
✅ 테스트 요약
세션없는 경우 예외 발생
포트폴리오 자산 분배계산 검증
prisma.iSAAccount.findUnique의 응답을 아래와 같이 구성:
총 평가금액: 21,000,000원
-비율 계산 결과:
스냅샷 검증