Skip to content

Commit 4795ec7

Browse files
committed
test(integration): switched the mjs extension for steps files back to js
for #1250
1 parent 698bf20 commit 4795ec7

8 files changed

+6
-3
lines changed

cucumber.mjs cucumber.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const base = {
22
formatOptions: {snippetInterface: 'async-await'},
3-
import: ['test/integration/features/**/*.mjs'],
3+
import: ['test/integration/features/**/*.js'],
44
publishQuiet: true
55
};
66

test/integration/features/step_definitions/common-steps.mjs test/integration/features/step_definitions/common-steps.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import * as td from 'testdouble';
1111

1212
import {World} from '../support/world.mjs';
1313

14-
const __dirname = dirname(fileURLToPath(import.meta.url));
14+
const __dirname = dirname(fileURLToPath(import.meta.url)); // eslint-disable-line no-underscore-dangle
1515

1616
setWorldConstructor(World);
1717

@@ -64,7 +64,10 @@ When(/^the project is scaffolded$/, async function () {
6464
...this.updaterScaffolderDetails && {dependencyUpdaters: {[chosenUpdater]: this.updaterScaffolderDetails}},
6565
...vcsHost && {
6666
vcsHosts: {
67-
[vcsHost]: {scaffolder: ({name, owner}) => ({sshUrl: this.remoteOriginUrl}), prompt: () => undefined}
67+
[vcsHost]: {
68+
scaffolder: ({name, owner}) => ({sshUrl: this.remoteOriginUrl, name, owner}),
69+
prompt: () => undefined
70+
}
6871
}
6972
},
7073
decisions: {

0 commit comments

Comments
 (0)