mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-20 17:54:23 +01:00
Handle Chromium to run Karma (#32178)
* chore(karma): handle Chromium to run tests * Update karma.conf.js Co-authored-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
parent
5cda50e5bd
commit
1955ffc01e
@ -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')
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user