diff options
author | Gaƫl Poupard <ffoodd@users.noreply.github.com> | 2020-11-17 22:42:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-17 22:42:55 +0300 |
commit | 1955ffc01e64bc53618b39ff6e2c5d1709988fe1 (patch) | |
tree | c55bbd916b021f3200c5d5501c63e88d0c8826cc /js/tests | |
parent | 5cda50e5bd9ca79fc619883ecdfb0db9909fff41 (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')
-rw-r--r-- | js/tests/karma.conf.js | 6 |
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') } } |