Intellisense for Jest在VS代码中不起作用 [英] Intellisense for Jest not working in VS code
本文介绍了Intellisense for Jest在VS代码中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
只需尝试键入it()
,并且自动建议为isTag
Just trying to type it()
and the auto suggestion is isTag
我尝试添加jsconfig.json
I've tried adding a jsconfig.json
{
"compilerOptions": {
"target": "es6"
},
"exclude": [
"node_modules",
"assets"
]
}
感谢任何对此有建议的人!
Thank you for anyone who has a suggestion for this!!
推荐答案
添加到您的jsconfig.json
:
{
"typeAcquisition": {
"include": [
"jest"
]
}
}
如果这不起作用,请尝试使用以下命令:
If this do not work try with this command:
npm install @types/jest
这篇关于Intellisense for Jest在VS代码中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文