1

1、添加 jestpackage.json

yarn add jest -D

2、安装 @types/jest

yarn add @types/jest

3、在根目录添加/编辑 jsconfig.json

{
    "typeAcquisition": {
        "include": [
            "jest"
        ]
    }
}

ziolau
80 声望5 粉丝

Mood-Driven Developer