gpt4 book ai didi

Angular 9 - Istanbul 尔测试覆盖率报告生成为空

转载 作者:行者123 更新时间:2023-12-03 23:27:36 26 4
gpt4 key购买 nike

我收到一份空报告,它列出了文件,但没有填写百分比......
知道是什么原因造成的吗?

错误信息:

Handlebars:访问已被拒绝解析属性“声明”,因为它不是其父级的“自己的属性(property)”。

我的 package.json 文件:

"dependencies": {
"@angular/animations": "^9.0.4",
"@angular/cdk": "^9.1.0",
"@angular/common": "^9.0.4",
"@angular/compiler": "^9.0.4",
"@angular/core": "^9.0.4",
"@angular/forms": "^9.0.4",
"@angular/platform-browser": "^9.0.4",
"@angular/platform-browser-dynamic": "^9.0.4",
"@angular/router": "^9.0.4",
"@fullcalendar/core": "^4.4.0",
"chart.js": "^2.9.2",
"classlist.js": "^1.1.20150312",
"core-js": "^2.5.7",
"font-awesome": "^4.7.0",
"karma-coverage": "^1.1.1",
"karma-phantomjs-launcher": "^1.0.4",
"moment-timezone": "^0.5.17",
"ngx-clipboard": "^12.2.1",
"primeicons": "^2.0.0",
"primeng": "^9.0.0",
"quill": "^1.3.7",
"rxjs": "^6.5.3",
"tslib": "^1.10.0",
"web-animations-js": "^2.3.2",
"xlsx": "^0.15.1",
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.900.4",
"@angular/cli": "^9.0.4",
"@angular/compiler-cli": "^9.0.4",
"@angular/language-service": "^9.0.4",
"@types/jasmine": "~2.8.3",
"@types/jasminewd2": "~2.0.2",
"@types/node": "^12.11.1",
"jasmine-core": "~2.8.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "^4.4.1",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "^1.4.3",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.4.1",
"ts-node": "~7.0.1",
"tslint": "~5.11.0",
"typescript": "~3.7.5"

这是coverage/index.html文件中的结果

Coverage results

最佳答案

“karma-coverage-istanbul-reporter”包已经过时了。
在我执行以下 npm update 语句“ npm i -D karma-coverage-istanbul-reporter@2.1.1 ”后,它又开始工作了。

关于Angular 9 - Istanbul 尔测试覆盖率报告生成为空,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60710690/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com