0

I have a compound js application. I only generated scaffold using

compound g scaffold user name surname

This command also created test/controllers/users-controllers-test.js file. I have tried ruuning this test as "npm test".

But on windows, it gave error as "Error: ENOENT, stat '.........\test\*\*'

And on linux/centos, it gave an error like "ReferenceError: describe is not defined"

Please help me out to understand what exactly I am missing...

Please need an aswer asap as it stucks my work.

Thanks in advance, Waiting for positive answers,

Thanks

Subhrajyoti Majumder
  • 40,646
  • 13
  • 77
  • 103

1 Answers1

0

See https://stackoverflow.com/a/16639709/448876.

You should use mocha test/* instead of npm test.

First make sure mocha is installed:

npm install -g mocha
Community
  • 1
  • 1
absynce
  • 1,399
  • 16
  • 29