When running yarn add --dev jest, I got error Incorrect integrity when fetching from the cache.
yarn add --dev jest
For anyone who is working with heroku and sees this error:
heroku login
heroku plugins:install heroku-repo
heroku repo:purge_cache -a $YOURAPPNAME
then do a manual rebuild