From bf4b75ee9c8a3af896d1921462902bb4dad3da3d Mon Sep 17 00:00:00 2001 From: Marc Laval Date: Mon, 24 Aug 2015 16:24:34 +0200 Subject: [PATCH] fix(build): error when running `npm test` locally Closes #3806 --- gulpfile.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index f614fdd1ba..56baa4af24 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -545,8 +545,10 @@ function getBrowsersFromCLI() { var outputList = []; for (var i = 0; i < inputList.length; i++) { var input = inputList[i]; - if (sauceConf.customLaunchers.hasOwnProperty(input)) { - //Non-sauce browsers case: overrides everything, ignoring other options + var karmaChromeLauncher = require('karma-chrome-launcher'); + if (sauceConf.customLaunchers.hasOwnProperty(input) || karmaChromeLauncher.hasOwnProperty("launcher:" + input)) { + // In case of non-sauce browsers, or browsers defined in karma-chrome-launcher (Chrome, ChromeCanary and Dartium): + // overrides everything, ignoring other options outputList = [input]; isSauce = false; break;