Algorithm practice, Jest testing. Credit to Stephen.
Testing will be done using Jest.
#to install Jest -sudo npm install -g jest -npm install #once installed -in the exercises folder you will find the problem sets. -instructions to each problem will be found at the beginning of each index.js file. -tests to each problem will be found in the test.js file under each respective folder. -solutions will be written inside the index.js file
-once you have written your solution and want to test it, in the terminal navigate to the Exercises directory.
- run the following command:
- test palindrome/test.js --watch (replace palendrome with the problem you're working on.)