ZTM tutorial - adding tests to a react app
To run the project:
npm install
npm start
npm test
-- you may have to press "a" to run all testsHEADS UP! Depending on your version of Jest, you may find that your snapshots aren't created properly (empty). This is a known issue and may require you to do the following: https://stackoverflow.com/questions/54419342/jest-enzyme-shallowwrapper-is-empty-when-creating-snapshot. I have included the code change mentioned in the article (package.json) in this git repo to show you how to do this if you encounter the issue.
visist https://zerotomastery.io/ for more