These files are an example of how you could do TDD using React Testing Library. To recreate
- Add files to a project (I spun up a create react app project)
- Go through the steps to install React Testing Library
- Run the test task through the debug script on your package.json. This opens up a debug instance so that you can stop on breakpoints within the component or the test in order to check values.
Mucho props to Christina for her super helpful RFC comparing react testing library vs enzyme. I found her pull request to set up these tests in Irving to be a very useful reference setting them up in my own project.