Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
1

unit test for node project (teams for education)

robertrodini1
robertrodini1

How to use the Input field for unit tests for node projects in Teams for Education? The online documentation doesn't use it. Is that because it is not implemented?

P.S. I would like to link to my Teams For Education example but I can't so I used change-calculator-CLI which is similar but not identical.

1 year ago
You are viewing a single comment. View All
1
MichaelMcDowell
MichaelMcDowell

@robertrodini1

I've asked about the same thing a couple weeks ago here (https://community.replit.com/t/multiple-input-output-in-node-js/167). I'm also using Teams for Education.

Currently I use functions with inputs to run my unit tests, and have students enter values on the code side for variables that are sent to the the function. It would be ideal to allow the prompt() twice for the student instead. Currently it times out as you have said.

If you drum up a work around at any point, I'd love to hear about it. I'm still experimenting when I find time each week with a solution. I'm just not that skilled at Jest at this time.

1 year ago