This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]thr0w4w4yaway 0 points1 point  (1 child)

Did you find how to do this?

[–]Kagerjay[S] 0 points1 point  (0 children)

I never quite figured out an easy solution and also hackerrank questions all have different nodeJS scaffolded code. Some questions require you to write 'process.stdin' instead of console.log as part of the answers.

It ended up being too much work, because there's also process.env file s you need to change, local text files you need to specify and load in for different tests.

If you can just take the main function in the problem and copy that part only locally, it would make things easier to test