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`.

打開目錄位置不對,我開始是在下面目錄打開命令行.

在如下目錄打開命令行就解決了:

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章