Skip to content

Commit c3db0c7

Browse files
committed
fix(featuresloader): send only the basename of the feature file - match the original loader behavior
1 parent b2a3048 commit c3db0c7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/featuresLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const createCucumber = (
3333
.find(fileSteps => fileSteps[filePath])
3434
[filePath].join("\n")}
3535
36-
createTestsFromFeature('${filePath}', \`${spec}\`);
36+
createTestsFromFeature('${path.basename(filePath)}', \`${spec}\`);
3737
})
3838
`
3939
)

lib/getStepDefinitionsPaths.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const getStepDefinitionsPaths = filePath => {
1111
const nonGlobalPattern = `${getStepDefinitionPathsFrom(
1212
filePath
1313
)}/**/*.+(js|ts)`;
14-
console.log("GOZDECKI nonGlobalPattern", nonGlobalPattern);
1514
const commonPath =
1615
loaded.config.commonPath || `${stepDefinitionPath()}/common/`;
1716
const commonDefinitionsPattern = `${commonPath}**/*.+(js|ts)`;

0 commit comments

Comments
 (0)