Hacker-Rank 30 Days of Code - JS Solutions with Test Cases
-
To run test cases, follow these steps
-
Change directory to "30daysOFcode_JavaScript" on your terminal.
cd 30daysOFcode_JavaScript -
For a particular code file, run the test file by using the following command.
npm t filename.test.js
-
-
While contributing, Please add a test file in the tests folder corresponding to the original program file following the naming convention.
-
Convention:
If HackerRank.js is the solution file, Test file should be named HackerRank.test.js