diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/karma.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/karma.ts index ae7876f027ac..5caaf4690f30 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/karma.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/karma.ts @@ -99,6 +99,7 @@ const init: any = (config: any, emitter: any, customFileHandlers: any) => { const hasIstanbulReporter = reporters.includes('coverage-istanbul'); if (hasCoveragePlugin && !hasCoverageReporter) { reporters.push('coverage'); + logger.warn(`There is a known issue with Karma and karma-coverage. Tests that exceed the coverage threshold will not fail. This will be fixed in Karma 5.2.x soon.`) } else if (hasIstanbulPlugin && !hasIstanbulReporter) { // coverage-istanbul is deprecated in favor of karma-coverage diff --git a/packages/schematics/angular/workspace/files/package.json.template b/packages/schematics/angular/workspace/files/package.json.template index c203c22c86e9..598f967fb0cf 100644 --- a/packages/schematics/angular/workspace/files/package.json.template +++ b/packages/schematics/angular/workspace/files/package.json.template @@ -30,7 +30,7 @@ "codelyzer": "^6.0.0", "jasmine-core": "~3.6.0", "jasmine-spec-reporter": "~5.0.0", - "karma": "~5.2.0", + "karma": "~5.1.1", "karma-chrome-launcher": "~3.1.0", "karma-coverage": "~2.0.3", "karma-jasmine": "~4.0.0",