aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorGaĆ«l Poupard <[email protected]>2020-11-17 20:42:55 +0100
committerGitHub <[email protected]>2020-11-17 21:42:55 +0200
commit1955ffc01e64bc53618b39ff6e2c5d1709988fe1 (patch)
treec55bbd916b021f3200c5d5501c63e88d0c8826cc /js
parent5cda50e5bd9ca79fc619883ecdfb0db9909fff41 (diff)
downloadbootstrap-1955ffc01e64bc53618b39ff6e2c5d1709988fe1.tar.xz
bootstrap-1955ffc01e64bc53618b39ff6e2c5d1709988fe1.zip
Handle Chromium to run Karma (#32178)
* chore(karma): handle Chromium to run tests * Update karma.conf.js Co-authored-by: XhmikosR <[email protected]>
Diffstat (limited to '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 55aca1bb1..74109460e 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')
}
}