Skip to content

Commit

Permalink
update ESM tests to run against headless chrome instead of saucelabs'…
Browse files Browse the repository at this point in the history
… chrome only
  • Loading branch information
boneskull committed Jan 9, 2018
1 parent ac1dd70 commit 5c6e99b
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,20 +131,9 @@ module.exports = config => {
break;

case 'esm':
// for now we will only run against Chrome to test this.
if (cfg.sauceLabs) {
cfg.sauceLabs.testName = 'ESM Integration Tests';
cfg.browsers = ['chrome@latest'];
cfg.customLaunchers = {
'chrome@latest': cfg.customLaunchers['chrome@latest']
};
} else if (!env.TRAVIS) {
cfg.browsers = ['Chrome'];
} else {
console.error(
'skipping ESM tests & exiting; no SauceLabs nor local run detected');
process.exit(0);
}
// just run against ChromeHeadless, since other browsers may not
// support
cfg.browsers = ['ChromeHeadless'];
cfg.files = [
'test/browser-fixtures/esm.fixture.html',
'test/browser-specific/esm.spec.js'
Expand Down

0 comments on commit 5c6e99b

Please sign in to comment.