Published: 12 Feb 2019 › Updated: 12 Feb 2019

Jest, enzyme 사용하기
설치 하기 Jest 는 설치 되어 있다는 가정
패키지를 좀 하나로 만들어 주지(-_-)
yarn add -D enzyme
yarn add -D enzyme-adapter-react-16
yarn add -D enzyme-to-json환경 설정 하기 package.json
이런것도 자동으로 좀 챙겨주지(-_-)
"jest": {
"snapshotSerializers": [
"enzyme-to-json/serializer"
]
},
Leave Jest, enzyme 사용하기 to:
Read more #react posts
Best Posts From ysangy
We have not curated any of ysangy's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.