WebStorm – Preferences – Languages & Frameworks – JavaScript – Libraries, 点击 Download 然后找到列表页中的 Jest, 然后点击 Download and Install.

Jest puts these methods into the global environment and they are not defined inside Jest module that WebStorm indexes.

参考: https://blog.jetbrains.com/webstorm/2014/07/how-webstorm-works-completion-for-javascript-libraries/

https://github.com/DefinitelyTyped/DefinitelyTyped

https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jest

安装后:

转载请注明:WebLogic Android 博客 » WebStorm增加Jest函数补全提示