X Tutup
Skip to content

Commit bf4b75e

Browse files
committed
fix(build): error when running npm test locally
Closes #3806
1 parent 21f60c5 commit bf4b75e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

gulpfile.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,8 +545,10 @@ function getBrowsersFromCLI() {
545545
var outputList = [];
546546
for (var i = 0; i < inputList.length; i++) {
547547
var input = inputList[i];
548-
if (sauceConf.customLaunchers.hasOwnProperty(input)) {
549-
//Non-sauce browsers case: overrides everything, ignoring other options
548+
var karmaChromeLauncher = require('karma-chrome-launcher');
549+
if (sauceConf.customLaunchers.hasOwnProperty(input) || karmaChromeLauncher.hasOwnProperty("launcher:" + input)) {
550+
// In case of non-sauce browsers, or browsers defined in karma-chrome-launcher (Chrome, ChromeCanary and Dartium):
551+
// overrides everything, ignoring other options
550552
outputList = [input];
551553
isSauce = false;
552554
break;

0 commit comments

Comments
 (0)
X Tutup