[7팀 최용훈] Chapter 3-1. 프론트엔드 테스트 코드#46
Open
yhun940731 wants to merge 7 commits intohanghae-plus:mediumfrom
Open
[7팀 최용훈] Chapter 3-1. 프론트엔드 테스트 코드#46yhun940731 wants to merge 7 commits intohanghae-plus:mediumfrom
yhun940731 wants to merge 7 commits intohanghae-plus:mediumfrom
Conversation
|
이번 과제도 열심히 하느라 고생하셨습니다! 그리고 질문이 있습니다!
|
Author
|
테스트 코드를 클린코드와 연관지어 생각해 본다면 어떨까요?
용훈님이 생각하는 단위, 통합, E2E 테스트란?
|
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.
Medium
7주차 과제 체크포인트
기본과제
Medium
질문
심화 과제
과제 셀프회고
기술적 성장
코드 품질
학습 효과 분석
easy.useSearch.spec - new Date() 시스템 시간 값이 이상한데?
처음에는 dummy events 데이터를 8월로 만들고서 계속 테스트 통과 안되어서 원인을 찾다가 설마하고 new Date() 콘솔에 찍어보니까 10월이라고 떠서 당황했습니다.
new Date()가 10월이라니.지금 8월인데 10월로 나오는게 이상해서 한참 생각했습니다. 시스템 환경 내 시간이 잘 못 됐을리는 없고 관련된 부분이 어디있었을까 한참 찾았습니다.
이걸 왜 써야하는지 진작 물어볼걸...
easy.dateUtils.spec - getDaysInMonth
monthIndex는 0에서 11로 월을 판단하는데, 우리가 쓰는 1~12월과는 -1씩 차이나기 때문에 moth parameter가 우리가 실사용하는 월로 계산되는 경우.
함수 제대로 안 보고 막 작성했다가 꽤나 꼬였습니다. 기존 코드를 잘 살펴보자..
과제 피드백
리뷰 받고 싶은 내용