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