Jest-Palindromes-Test

Contributors: Trevor Rapp, Trevor Burnham “Test Driven React”

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.



View Project


https://user-images.githubusercontent.com/11747875/159598795-768eb93a-6918-4daf-bba7-7a14f61d1cdf.mp4



HTML5 CSS3 JavaScript Git GitHub Terminal




Description:

“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.



PROJECT DEMONSTRATES



QUICK START INSTRUCTIONS

  1. Open your IDE of choice

  2. Make sure you have Node and npm installed. Type

node -v 
npm -v

If you receive a version type then they are installed.

  1. Create a Folder to hold the program
    • in the terminal type mkdir jest-test-driven-fizz-buzz or whatever other name you want to call it.
    • navigate into the folder by typing cd jest-test-driven-fizz-buzz
    • clone the program into the folder you just created by typing:
 
 git clone ssh://github.com/trrapp12/jest-test-driven-fizz-buzz.git 
 cd jest-test-driven-fizz-buzz

  1. Make sure you are still in the ‘jest-test-driven-fizz-buzz’ folder
  2. Install Jest. Type

npm install --save-dev jest@23.6.0

  1. Now to run the tests you can run the command:

npm run test -- --coverage --coverageReporters=text

  1. You should see a print out showing the results of the test that looks like this:

Jest Palindrome Test

  1. Enjoy!



PROJECT DEMONSTRATES



CHALLENGES I OVERCAME



PERSONAL CONTRIBUTIONS



ATTRIBUTIONS



YOU CAN FIND ME AT:

*For more information see my LinkedIn or return to my Github