Jest 的智能感知在 VS 代码中不起作用 [英] Intellisense for Jest not working in VS code
本文介绍了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
这篇关于Jest 的智能感知在 VS 代码中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文