0w00w0.hashnode.dev·Mar 30, 2022React 유닛테스트 2021글 React 유닛테스트할 때, 좋은 방법은 언제나 고민되는 것이지만 우선 2021년 2월 시점에는 이게 제일 좋다 느낀 걸 정리했습니다. 우선 테스트런너로는 jest입니다. 여기에 고민할 요소는 없습니다. 그럼 React 테스트를 어떻게 하는가? 입니다. 공식 react-dom/test-utils 사용 공식 react-test-renderer 사용 @testing-library/react 사용 선택지는 이 3종류가 유명합니다. 공식이라는...ReactAdd a thoughtful commentNo comments yetBe the first to start the conversation.