Skip to content

Commit a61564a

Browse files
committed
fix(@schematics/angular): set restartOnFileChange to true in karma.conf templates
Fix angular#13542
1 parent e2bebe9 commit a61564a

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)