From 15f3f433cfca4e34233d1684cc64b5954bfd6f46 Mon Sep 17 00:00:00 2001 From: xidedix Date: Mon, 19 Aug 2024 17:02:35 +0200 Subject: [PATCH] chore(karma.conf): add custom chrome launcher with --disable-search-engine-choice-screen flag --- karma.conf.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/karma.conf.js b/karma.conf.js index b97545491..2a87249b6 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -1,7 +1,7 @@ // Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html -module.exports = function (config) { +module.exports = function(config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], @@ -37,7 +37,13 @@ module.exports = function (config) { colors: true, logLevel: config.LOG_INFO, autoWatch: true, - browsers: ['Chrome'], + browsers: ['Chrome_Custom'], + customLaunchers: { + Chrome_Custom: { + base: 'Chrome', + flags: ['--disable-search-engine-choice-screen'] + } + }, singleRun: false, restartOnFileChange: true });