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 객체는 브라우저 환경에서만 사용 가능합니다.
때문에 다음과 같이 테스트 환경에 필요한 설정을 추가하였습니다.