From 5c6e99b50bd2a17c03a5ae6b52862bc60121bd91 Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Mon, 8 Jan 2018 20:50:02 -0800 Subject: [PATCH] update ESM tests to run against headless chrome instead of saucelabs' chrome only --- karma.conf.js | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/karma.conf.js b/karma.conf.js index 1880b1e2d8..332ba9be0d 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -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'