Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2020-11-17 23:01:24 +0300
committerXhmikosR <xhmikosr@gmail.com>2020-11-24 09:40:11 +0300
commit7eee78c517d72f4c70ad7ec3e9b73f1f439de97d (patch)
tree468df2a5dcb38370d303c536207bc083ba1aab47
parentbfb773d64be5f3c07628bb6e3f1295fd854c4514 (diff)
Backport #32178 and #32182
Handle Chromium to run Karma
-rw-r--r--js/tests/karma.conf.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/tests/karma.conf.js b/js/tests/karma.conf.js
index 65b292b5b3..b4a7497476 100644
--- a/js/tests/karma.conf.js
+++ b/js/tests/karma.conf.js
@@ -30,11 +30,15 @@ const detectBrowsers = {
return ['ChromeHeadless']
}
+ if (availableBrowser.includes('Chromium')) {
+ return ['ChromiumHeadless']
+ }
+
if (availableBrowser.includes('Firefox')) {
return ['FirefoxHeadless']
}
- throw new Error('Please install Firefox or Chrome')
+ throw new Error('Please install Chrome, Chromium or Firefox')
}
}