Skip to content

Commit

Permalink
chore(karma): handle Chromium to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Nov 17, 2020
1 parent 4c9597e commit 8020bb2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/tests/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 Firefox, Chrome or Chromium')
}
}

Expand Down

0 comments on commit 8020bb2

Please sign in to comment.