Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 142100

WebStorm not recognising Mocha describe() and it() [duplicate]

$
0
0

I admit that I'm being pedantic here. I have a Mocha test in WebStorm and WebStorm is complaining about describe() and it() not being a function type.

Method expression is not of Function type

I have the mocha-definitelyTyped library downloaded, and added to the tests folder.

Scopes

Running Mocha is fine. Why is WebStorm not resolving the describe and it methods?


Viewing all articles
Browse latest Browse all 142100

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>