Getting Error: invalid interface "BDD" when running mocha tests

Hi,

I am trying to run mocha tests on the webstorm and I keep getting this error --> "throw new Error('invalid interface "' + name + '"');"

I am even using bdd format tests but it's still failing. I would really appreciate it if someone can tell me how to fix this issue.

Error Message:

Mocha Configuration:

Thanks

 

3 comments
Comment actions Permalink

please provide screenshots of the error message and your mocha run configuration

0
Comment actions Permalink

I had the exact same error and was able to fix it by changing the "User interface" field in the above dialog box from BDD (caps) to bdd (lower case).

0
Comment actions Permalink

yes, changing the case should fix the issue; BTW, WebStorm uses 'bdd' (lowercase), you must have entered the wrong value manually...

0

Please sign in to leave a comment.