꾸준히 실패를 되돌아보자 by 김주엽
React Testing Library 튜토리얼 by 김윤섭
- import React from 'react'; const title = 'Hello React'; function App() { return {title}; } export default App;
- React Testing 라이브러리를 사용하여 컴포넌트에 대한 테스트를 작성할 때마다 컴포넌트를 먼저 렌더링 한 다음 테스트에서 React Testing Library의 렌더러에 표시되는 내용을 디버깅 할 수 있습니다
- () => { render(
); // implicit assertion // because getByText would throw error // if element wouldn't be there screen