Skip to content

Commit 1f9c84f

Browse files
confrariaalexeagle
authored andcommitted
fix(@schematics/angular): set restartOnFileChange to true in karma.conf templates
Fix #13542
1 parent ec94f42 commit 1f9c84f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/schematics/angular/application/files/root/karma.conf.js.template

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module.exports = function (config) {
2626
logLevel: config.LOG_INFO,
2727
autoWatch: true,
2828
browsers: ['Chrome'],
29-
singleRun: false
29+
singleRun: false,
30+
restartOnFileChange: true
3031
});
3132
};

packages/schematics/angular/library/files/__projectRoot__/karma.conf.js.template

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module.exports = function (config) {
2626
logLevel: config.LOG_INFO,
2727
autoWatch: true,
2828
browsers: ['Chrome'],
29-
singleRun: false
29+
singleRun: false,
30+
restartOnFileChange: true
3031
});
3132
};

0 commit comments

Comments
 (0)