Conversation
Zero-1016
added a commit
that referenced
this pull request
Mar 21, 2025
* [FE] eslint 설정 추가 세팅 #417 (#418) * chore: eslint 설정을 추가합니다. * refactor: 바뀐 eslint 규칙을 적용합니다. * refactor: script 명령어 수정 * ci: 깃 액션을 이용한 코드 품질 검사 * ci: script 변경 * ci: 조건 변경 * [FE] msw 모킹 데이터 추가 및 연결 #419 (#422) * test: auth mock 데이터를 추가한다. * test: service mock 데이터를 추가한다. * test: user mock 데이터를 추가한다. * test: service response 값 변경 * test: search mock를 추가합니다. * test: user mock을 변경합니다. * test: 실제 데이터를 추가합니다. * test: 유효성 검사 코드를 제거합니다. * test: socket handler를 추가합니다. (#425) * [FE] 컴포넌트 테스트를 추가합니다. #421 (#426) * refactor: 사용하지 않는 signaling stomp 코드를 제거합니다. * test: avatar test 코드를 추가합니다. * test: react-testing 도구를 추가합니다. * test: auth-input test code를 작성합니다. * test: check-box test 코드를 작성합니다. * test: select-box test 코드를 작성합니다. * test: date-input test 코드를 작성한다. * test: volume-slider test 코드를 작성한다.
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.
📎 연관 이슈
해결된 이슈: close #421
✏️ 작업 내용
공용으로 사용하는 컴포넌트에 테스트 코드를 추가하였습니다.
구현하면서 다음과 같은 에러를 마주하였습니다.
이 에러는 Vitest가 Node.js 환경에서 실행되고 있어서 발생합니다. Vitest는 기본적으로 Node.js 환경을 사용하는데, 테스팅 도구 내부에서 사용하는 document 객체는 브라우저 환경에서만 사용 가능합니다.
때문에 다음과 같이 테스트 환경에 필요한 설정을 추가하였습니다.