Unverified Commit 1955ffc0 authored by Gaël Poupard's avatar Gaël Poupard Committed by GitHub
Browse files

Handle Chromium to run Karma (#32178)


* chore(karma): handle Chromium to run tests

* Update karma.conf.js

Co-authored-by: default avatarXhmikosR <xhmikosr@gmail.com>
parent 5cda50e5
Showing with 5 additions and 1 deletion
+5 -1
......@@ -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')
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment