[英]How to get vscode to autocomplete "it" instead of "instanceof" for jest for react
In VScode when I type the first few letters of describe
, the suggestion comes up for describe
from jest and I pick it and all is good.在 VScode 中,当我键入describe
describe
jest 的建议,我选择了它,一切都很好。
When I type it
for creating a test example there is no suggestion for the jest it
and worst of all when I type the two letters " it
" and the open paren " (
", instead of当我输入it
来创建一个测试示例时,没有任何关于开玩笑的it
,最糟糕的是,当我输入两个字母“ it
”和左括号“ (
”,而不是
it(
I get我得到
instanceof(
so I have to type it, then arrow navigate (left arrow for example) and then right arrow and then i can type the open paren and that works.所以我必须输入它,然后使用箭头导航(例如向左箭头)然后向右箭头,然后我可以输入打开的括号,这样就可以了。
Annoying.恼人的。
For extensions I have Jest 3.2.0 I don't have other jest plugins, not sure which I would use (there are dozens).对于扩展我有 Jest 3.2.0 我没有其他的 jest 插件,不确定我会使用哪个(有几十个)。
Jest Snippets extension overrides this behavior. Jest Snippets扩展会覆盖此行为。 It also allows to create test template from a snippet.它还允许从片段创建测试模板。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.