Hackerrank_30daysOFcode/30daysOFcode_JavaScript at master · rahulsain/Hackerrank_30daysOFcode

Hacker-Rank 30 Days of Code - JS Solutions with Test Cases

  • To run test cases, follow these steps

    1. Change directory to "30daysOFcode_JavaScript" on your terminal.
      cd 30daysOFcode_JavaScript

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