Jest, enzyme 사용하기

in react •  6 years ago 
  1. 설치 하기 Jest 는 설치 되어 있다는 가정
    패키지를 좀 하나로 만들어 주지(-_-)
    yarn add -D enzyme
    yarn add -D enzyme-adapter-react-16
    yarn add -D enzyme-to-json

  2. 환경 설정 하기 package.json
    이런것도 자동으로 좀 챙겨주지(-_-)
    "jest": {
    "snapshotSerializers": [
    "enzyme-to-json/serializer"
    ]
    },

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

✅ Enjoy the vote! For more amazing content, please follow @themadcurator for a chance to receive more free votes!

Hello @ysangy! This is a friendly reminder that you have 3000 Partiko Points unclaimed in your Partiko account!

Partiko is a fast and beautiful mobile app for Steem, and it’s the most popular Steem mobile app out there! Download Partiko using the link below and login using SteemConnect to claim your 3000 Partiko points! You can easily convert them into Steem token!

https://partiko.app/referral/partiko

Congratulations @ysangy! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 1 year!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

The new SteemFest⁴ badge is ready
Vote for @Steemitboard as a witness to get one more award and increased upvotes!