npm install jest enzyme code example Example: enzyme npm install npm i --save-dev enzyme enzyme-adapter-react-16