From e22dfbbfe77236347d430f1e82f341bf410406ef Mon Sep 17 00:00:00 2001 From: Pasunuri Srinidhi <93040752+PasunuriSrinidhi@users.noreply.github.com> Date: Tue, 25 Apr 2023 22:23:00 +0530 Subject: [PATCH] Updated karma.conf.js 1.clearContext has been renamed to clearConsole. 2.The customLaunchers property has been added to specify a headless version of Chrome for use in continuous integration environments. 3.The restartOnFileChange property has been added to enable automatic test reloading when source code changes occur. --- karma.conf.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/karma.conf.js b/karma.conf.js index 2b4c834d..167990ac 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -19,7 +19,7 @@ module.exports = function (config) { // for example, you can disable the random execution with `random: false` // or set a specific seed with `seed: 4321` }, - clearContext: false // leave Jasmine Spec Runner output visible in browser + clearConsole: false // leave Jasmine Spec Runner output visible in browser }, jasmineHtmlReporter: { suppressAll: true // removes the duplicated traces @@ -38,6 +38,12 @@ module.exports = function (config) { logLevel: config.LOG_INFO, autoWatch: true, browsers: ['Chrome'], + customLaunchers: { + ChromeHeadlessCI: { + base: 'ChromeHeadless', + flags: ['--no-sandbox'] + } + }, singleRun: false, restartOnFileChange: true });