我正在从版本4升级Angular应用程序到版本6.一切正常运行ng serve.现在的问题是我们的一些规范文件失败了[object ErrorEvent] thrown.我以前见过这个并且通常可以用--sourceMap=false旗帜运行测试以查看更详细的报告,但现在我仍然得到这个模棱两可的错误.我已经检查过没有任何组件有任何未定义的输入.经过一些研究后,我发现有些人遇到了jasmine-core 3.0.0的问题并收到了这个错误,直到他们回到2.99.0,但这对我也没有任何作用.
关于所有这一切最奇怪的部分是,我可以xdescribe通过此错误失败的规范(或所有规范)然后不同的失败,之前没有失败.
这是package.json
{
"name": "enterprise-frontend",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test --browsers=Chrome --code-coverage",
"lint": "ng lint --type-check",
"e2e": "ng e2e",
"compodoc": "./node_modules/.bin/compodoc -p tsconfig.json -s"
},
"private": true,
"dependencies": {
"@angular/animations": "^6.0.2",
"@angular/cdk": "^6.0.2",
"@angular/common": "^6.0.2",
"@angular/compiler": "^6.0.2",
"@angular/core": "^6.0.2",
"@angular/forms": "^6.0.2",
"@angular/http": "^6.0.2",
"@angular/material": "^6.0.2",
"@angular/platform-browser": "^6.0.2",
"@angular/platform-browser-dynamic": "^6.0.2",
"@angular/router": "^6.0.2",
"@auth0/angular-jwt": "^2.0.0",
"@ngrx/effects": "^6.0.1", …Run Code Online (Sandbox Code Playgroud)