]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Handle Chromium to run Karma (#32178)
authorGaël Poupard <ffoodd@users.noreply.github.com>
Tue, 17 Nov 2020 19:42:55 +0000 (20:42 +0100)
committerGitHub <noreply@github.com>
Tue, 17 Nov 2020 19:42:55 +0000 (21:42 +0200)
* chore(karma): handle Chromium to run tests

* Update karma.conf.js

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
js/tests/karma.conf.js

index 55aca1bb1988a92d588228694e3430bae593c3e6..74109460e897835b6fe9b2cb7f2846acbe52ec56 100644 (file)
@@ -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')
   }
 }