Skip to content

Commit 6e68555

Browse files
authored
Merge pull request #275 from Financial-Times/esm-compatibility
feat: support loading ESM config files
2 parents c4e09e7 + c8de061 commit 6e68555

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/smoke/smoke-test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ class SmokeTest {
5252
}
5353

5454
async compileTests (sets) {
55-
const configsToRun = await filterConfigs(this.configFile, sets, this.isInteractive);
55+
let configsToRun = await filterConfigs(this.configFile, sets, this.isInteractive);
56+
if (!Array.isArray(configsToRun) && configsToRun.__esModule) {
57+
configsToRun = configsToRun.default;
58+
}
5659
const canRunCrossBrowser = await getBrowserstackConfig(this.enabledBrowsers);
5760
const globalOptions = {
5861
headers: this.globalHeaders,

0 commit comments

Comments
 (0)