Excerpted from “Test-Driven React”, published by The Pragmatic Bookshelf. Copyrights apply to this code. It may not be used to create training material, courses, books, articles, and the like. Contact us if you are in doubt.
We make no guarantees that this code is fit for any purpose. Visit http://www.pragmaticprogrammer.com/titles/tbreact for more book information.
https://user-images.githubusercontent.com/11747875/159598795-768eb93a-6918-4daf-bba7-7a14f61d1cdf.mp4

“My goal is to feel better about a project after a year than I did in the starry-eyed beginning, and TDD helps me achieve this”
– Kent Beck
This project is a simple practice in unit testing.
Open your IDE of choice
Make sure you have Node and npm installed. Type
node -v
npm -v
If you receive a version type then they are installed.
mkdir jest-test-driven-fizz-buzz or whatever other name you want to call it.cd jest-test-driven-fizz-buzz
git clone ssh://github.com/trrapp12/jest-test-driven-fizz-buzz.git
cd jest-test-driven-fizz-buzz
npm install --save-dev jest@23.6.0
npm run test -- --coverage --coverageReporters=text
*For more information see my LinkedIn or return to my Github