Multiple Input/Output in Node.JS

I’m trying to create input/output tests

Has anyone run tests that contain multiple inputs? I get timed out errors in all mine (trying multi line, comma separated, etc). The documentation is pretty basic and only shows basic output.

Thanks

Please share your setup! I’m sure we can figure it out together.

Hey thanks so much! I’m fairly new to teaching CS and have my kids working on javascript.

I’m trying to build the most basic test for an example:

let num1 = parseInt(prompt("Enter the first number: "));
console.log(num1);

let num2 = parseInt(prompt("Enter the second number: "));
console.log(num2);

Then a simple input/output test like so:

The test will always time out on me. It looks to be entering both inputs at once (on the 1st number input). Is there a way to separate each test input?

Have you had any luck or success with this demc? I’ve been experimenting with Jest and unit tests as well for a solution but my tests always time out waiting for input in both cases.