Cannot find name 'describe'. Do you need to install type definitions for a test runner?

ERROR in src/myApp/e2e/src/app.e2e-spec.ts(3,1): error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha`.

打开目录位置不对,我开始是在下面目录打开命令行.

Cannot find name 'describe'. Do you need to install type definitions for a test runner?_第1张图片

在如下目录打开命令行就解决了:

Cannot find name 'describe'. Do you need to install type definitions for a test runner?_第2张图片

Cannot find name 'describe'. Do you need to install type definitions for a test runner?_第3张图片

你可能感兴趣的:(前端)