Skip to content

Commit 01e7622

Browse files
committed
fix(cucumbertemplate): apparently the path.sep doesn't work consistently on windows
1 parent 0160151 commit 01e7622

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/cucumberTemplate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ const os = require("os");
44
const getPathFor = file => {
55
if (os.platform() === "win32") {
66
return path
7-
.join(__dirname.replace(/\\/g, path.sep), file)
8-
.replace(/\\/g, path.sep);
7+
.join(__dirname.replace(/\\/g, "\\\\"), file)
8+
.replace(/\\/g, "\\\\");
99
}
1010
return `${__dirname}/${file}`;
1111
};

0 commit comments

Comments
 (0)