VSCode Jest 自动补全配置

一、添加 jestpackage.jsonjson

yarn add jest -D

二、安装 @types/jestui

yarn add @types/jest

三、在根目录添加/编辑 jsconfig.jsoncode

{
    "typeAcquisition": {
        "include": [
            "jest"
        ]
    }
}
相关文章
相关标签/搜索