A series of examples on how to TDD React
A series of examples on how to TDD React
git clone
...nvm install 4
OR if v4 of node.js is installed, nvm use
npm i
Each section is broken out into its own folder, starting with basics. What you'll find there is the finished example. I am experimenting with using the commit history and comments to drive the guide itself. Feedback on whether this works or not would be appreciated.
Each commit that is suffixed with "- red" can be checked out separately to examine the failing test. Each commit that is suffixed with "- green" shows how I finally passed the failing assertion.
Looking at the history for each section will show you only the steps needed to drive that part of the application.
npm run <section name>
npm test
Please feel free to open an issue for:
Use a pull request for
I am not a windows user, therefore this has only been tested on OSX.