在Chrome中因业力测试运行程序而出现错误,并且未执行测试用例

时间:2019-06-24 12:26:17

标签: angular unit-testing karma-jasmine

我遇到错误,业力测试运行程序未执行任何测试用例,但测试运行程序在chrome中启动。

  

已连接到ID为40615410的Chrome X4ZYdTIysLJqmDiXAAAA插座上   75.0.3770(Windows 10 0.0.0):执行0的0错误(0.008秒/ 0秒)

我已将代码移至新文件夹,并删除了节点模块文件夹并运行npm install,但仍无法正常工作。

karma测试运行程序在chrome中启动,但由于错误而没有执行任何测试用例。

package.json :
    "devDependencies": {
    "@angular-devkit/build-angular": "~0.13.0",
    "@angular/cli": "^7.3.8",
    "@angular/compiler-cli": "^7.2.13",
    "@angular/language-service": "^7.2.13",
    "@types/jasmine": "~2.8.3",
    "@types/jasminewd2": "~2.0.2",
    "@types/moment": "^2.13.0",
    "@types/moment-timezone": "^0.5.9",
    "@types/node": "~6.0.60",
    "codelyzer": "^4.0.1",
    "jasmine-core": "~2.8.0",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~2.0.0",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "^1.2.1",
    "karma-jasmine": "~1.1.0",
    "karma-jasmine-html-reporter": "^0.2.2",
    "protractor": "~5.1.2",
    "ts-node": "~4.1.0",
    "tslint": "~5.9.1",
    "typescript": "~3.2.4"   }

0 个答案:

没有答案