I'm developing web an app using AngularJS + TypeScript, and Karma + Jasmine for testing purposes.
The problem is that WebStorm continues pestering me with the following error, despite the fact that all of my tests compile well:
Unresolved function or method inject()
I've added angular-mocks typings:
and provided angular-mocks JavaScript library for IDE:
But the problem still exists. I know that as a workaround, one can declare corresponding variable, but honestly I don't really think that this is a good approach.



