We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8866ba3 commit f963a2eCopy full SHA for f963a2e
lib/cucumberTemplate.js
@@ -3,8 +3,9 @@ const os = require("os");
3
4
const getPathFor = file => {
5
if (os.platform() === "win32") {
6
- const pathParts = __dirname.split("\\");
7
- return path.join(...pathParts, file).replace(/\\/g, "\\\\");
+ return path
+ .join(__dirname.replace(/\\/g, path.sep), file)
8
+ .replace(/\\/g, path.sep);
9
}
10
return `${__dirname}/${file}`;
11
};
0 commit comments