/comment-app-class-ans

codes from TDD lab

Primary LanguageJavaScript

React TDD LAB

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

What does this repo contain

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 by create-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)

Lab Instructions

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

Additional Articles

-Javascript “Bang, Bang. I shot you down” - Use of double bangs (!!) in Javascript.