karma-runner / karma-chrome-launcher

A Karma plugin. Launcher for Chrome and Chrome Canary.
MIT License
469 stars 120 forks source link

Chrome 75.0.3770 StaticInjectorError(DynamicTestModule) #207

Closed ebleeker closed 5 years ago

ebleeker commented 5 years ago

Since a new update of chrome from 73 to 75.0..3770 I encounter errors in the karma tests

in the dev dependencies are the following packages

"devDependencies": {
    "@angular-devkit/build-angular": "~0.12.0",
    "@angular-devkit/build-ng-packagr": "~0.12.0",
    "@angular/cli": "~7.2.2",
    "@angular/compiler-cli": "^7.2.1",
    "@angular/language-service": "^7.2.1",
    "@types/jasmine": "2.8.6",
    "@types/jasminewd2": "~2.0.3",
    "@types/node": "~8.9.4",
    "codelyzer": "~4.2.1",
    "husky": "^1.0.0-rc.14",
    "jasmine-core": "2.99.1",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "^3.1.4",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "~2.0.0",
    "karma-jasmine": "~1.1.1",
    "karma-jasmine-html-reporter": "^0.2.2",

I tried updating various dependencies but the original problem is still occurring

10% building 1/1 modules 0 active23 07 2019 11:19:50.860:INFO [karma-server]: Karma v3.1.4 server started at http://0.0.0.0:9876/
23 07 2019 11:19:50.863:INFO [launcher]: Launching browsers ChromeHeadless with concurrency unlimited
23 07 2019 11:19:50.870:INFO [launcher]: Starting browser ChromeHeadless   

HeadlessChrome 75.0.3770 (Mac OS X 10.14.5) ERROR
  {
    "message": "An error was thrown in afterAll\nUncaught Error: StaticInjectorError(DynamicTestModule)[EditGroupComponent -> LoggingService]: \n  StaticInjectorError(Platform: core)[EditGroupComponent -> LoggingService]: \n    NullInjectorError: No provider for LoggingService! thrown",
    "str": "An error was thrown in afterAll\nUncaught Error: StaticInjectorError(DynamicTestModule)[EditGroupComponent -> LoggingService]: \n  StaticInjectorError(Platform: core)[EditGroupComponent -> LoggingService]: \n    NullInjectorError: No provider for LoggingService! thrown"
  }

Does anyone know the solution?

rogeriopvl commented 5 years ago

It seems that your tests are failing. As far as I can tell this is not directly related with karma or karma-chrome-launcher. I'm closing this for now. Let me know if you still think that it's directly related with karma-chrome-launcher.