Skip to content

Commit 5c6e99b

Browse files
committed
update ESM tests to run against headless chrome instead of saucelabs' chrome only
1 parent ac1dd70 commit 5c6e99b

1 file changed

Lines changed: 3 additions & 14 deletions

File tree

‎karma.conf.js‎

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -131,20 +131,9 @@ module.exports = config => {
131131
break;
132132

133133
case 'esm':
134-
// for now we will only run against Chrome to test this.
135-
if (cfg.sauceLabs) {
136-
cfg.sauceLabs.testName = 'ESM Integration Tests';
137-
cfg.browsers = ['chrome@latest'];
138-
cfg.customLaunchers = {
139-
'chrome@latest': cfg.customLaunchers['chrome@latest']
140-
};
141-
} else if (!env.TRAVIS) {
142-
cfg.browsers = ['Chrome'];
143-
} else {
144-
console.error(
145-
'skipping ESM tests & exiting; no SauceLabs nor local run detected');
146-
process.exit(0);
147-
}
134+
// just run against ChromeHeadless, since other browsers may not
135+
// support
136+
cfg.browsers = ['ChromeHeadless'];
148137
cfg.files = [
149138
'test/browser-fixtures/esm.fixture.html',
150139
'test/browser-specific/esm.spec.js'

0 commit comments

Comments
 (0)