-1

I have an more than 2000 test cases in my project & whenever i ran all the test cases the randomly test cases failing with below error.

enter image description here

Here is my package.json file

"devDependencies": {

   "@angular-devkit/build-angular": "^15.2.8",

    "@angular/cli": "^15.2.8",

    "@angular/compiler": "^15.2.9",

    "@angular/compiler-cli": "^15.2.9",

    "@angular/language-service": "^15.2.9",

    "@ngxs/devtools-plugin": "^3.7.1",

    "@schematics/angular": "^12.2.9",

    "@types/jasmine": "~3.3.8",

    "@types/jasminewd2": "~2.0.3",

    "@types/node": "^14.14.31",

    "codelyzer": "^6.0.1",

    "jasmine-core": "~3.5.0",

    "jasmine-spec-reporter": "~4.2.1",

    "karma": "~6.4.1",

    "karma-chrome-launcher": "~2.2.0",

    "karma-coverage": "^2.0.3",

    "karma-coverage-istanbul-reporter": "~2.0.1",

    "karma-jasmine": "~2.0.1",

    "karma-jasmine-html-reporter": "^1.5.4",

    "protractor": "~7.0.0",

    "sonar-scanner": "^3.1.0",

    "ts-node": "~7.0.0",

    "tslint": "~6.1.3",

    "typescript": "~4.9.5"

  }

}

All test cases should run and no error should thrown by test cases.

  • Unfortunately, this error can be anything: https://stackoverflow.com/a/56276277/7365461. Read through the whole thread, some people have strategies on how to fix it. – AliF50 Aug 08 '23 at 12:55

0 Answers0