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:
authorGaƫl Poupard <ffoodd@users.noreply.github.com>2020-11-17 22:42:55 +0300
committerGitHub <noreply@github.com>2020-11-17 22:42:55 +0300
commit1955ffc01e64bc53618b39ff6e2c5d1709988fe1 (patch)
treec55bbd916b021f3200c5d5501c63e88d0c8826cc /js/tests/karma.conf.js
parent5cda50e5bd9ca79fc619883ecdfb0db9909fff41 (diff)
Handle Chromium to run Karma (#32178)
* chore(karma): handle Chromium to run tests * Update karma.conf.js Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Diffstat (limited to 'js/tests/karma.conf.js')
-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 55aca1bb19..74109460e8 100644
--- a/js/tests/karma.conf.js
+++ b/js/tests/karma.conf.js
@@ -33,11 +33,15 @@ const detectBrowsers = {
return debug ? ['Chrome'] : ['ChromeHeadless']
}
+ if (env.CI === true || availableBrowser.includes('Chromium')) {
+ return debug ? ['Chromium'] : ['ChromiumHeadless']
+ }
+
if (availableBrowser.includes('Firefox')) {
return debug ? ['Firefox'] : ['FirefoxHeadless']
}
- throw new Error('Please install Firefox or Chrome')
+ throw new Error('Please install Chrome, Chromium or Firefox')
}
}