This repo contains the starter propject for building a comments list by Test Driven Development (TDD). It is following the instructions stated in this blog post Creating Readable Tests Using React Testing
The sample repo is created using create-react-app
The initial libraries installed besides react, are
For testing:
- react-testing-library
- jest-dom
Note: We do not need to install
jest
as it is already installed bycreate-react-app
For development
- props-types (this an optional library for ensuring the correct type of props is passed to a component)
For styling:
- bootstrap (and imported in index.js)
Fork this repository to your github account and clone it to your computer
The master
branch contains the final solution
You should checkout to the lab
branch do an npm install
before starting this lab
-Javascript “Bang, Bang. I shot you down” - Use of double bangs (!!) in Javascript.