source: https://facebook.github.io/jest/
or:
yarn add jest babel-jest --dev
in package Json : "test": "jest --watch"
yarn start
mkdir tests touch count.test.js
the countWord.js file need to move to root folder
yarn add enzyme react-test-renderer enzyme-adapter-react-16 --dev
yarn test