javascriptnode.jsnodeunit

Nodeunit will not run nodeunit command just give error


Hi I try to get Nodeunit install but when i try and run the nodeunit command it just give the a error. The screenshot below is the error . Any help would be appreciated thanks.

running window 10 and installed with the command 'npm install nodeunit -g'

enter image description here


Solution

  • error on your screenshot shows that you do not have a folder from which nodeunit get tests by default, you must create folder named 'test' in current directory, and and put it in test files