From 1f9c84f98c811e2b0d3cfffece02310ea64a37ca Mon Sep 17 00:00:00 2001 From: Luis Confraria Date: Fri, 8 Feb 2019 15:11:47 +0000 Subject: [PATCH] fix(@schematics/angular): set restartOnFileChange to true in karma.conf templates Fix #13542 --- .../angular/application/files/root/karma.conf.js.template | 3 ++- .../library/files/__projectRoot__/karma.conf.js.template | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/schematics/angular/application/files/root/karma.conf.js.template b/packages/schematics/angular/application/files/root/karma.conf.js.template index a4d11df3425d..88505e166a08 100644 --- a/packages/schematics/angular/application/files/root/karma.conf.js.template +++ b/packages/schematics/angular/application/files/root/karma.conf.js.template @@ -26,6 +26,7 @@ module.exports = function (config) { logLevel: config.LOG_INFO, autoWatch: true, browsers: ['Chrome'], - singleRun: false + singleRun: false, + restartOnFileChange: true }); }; diff --git a/packages/schematics/angular/library/files/__projectRoot__/karma.conf.js.template b/packages/schematics/angular/library/files/__projectRoot__/karma.conf.js.template index 04af0229f689..87b2dd32d60d 100644 --- a/packages/schematics/angular/library/files/__projectRoot__/karma.conf.js.template +++ b/packages/schematics/angular/library/files/__projectRoot__/karma.conf.js.template @@ -26,6 +26,7 @@ module.exports = function (config) { logLevel: config.LOG_INFO, autoWatch: true, browsers: ['Chrome'], - singleRun: false + singleRun: false, + restartOnFileChange: true }); };