Examples of testing React components with React Test Renderer for the article https://blog.logrocket.com/tdd-with-react-test-renderer/
To run tests locally, please, clone the repo, go to the root folder, then execute in terminal npm i && npm test
. You should see all tests passing.