Skip to content

Commit 92eecbc

Browse files
Bug Fixes for isCypressProjDirValid. Absolute path for path.join
1 parent 04cc74e commit 92eecbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/helpers/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ exports.isCypressProjDirValid = (cypressProjDir, integrationFoldDir) => {
206206
let cypressDir = path.resolve(cypressProjDir);
207207
let integrationFolderDir = path.resolve(integrationFoldDir);
208208
if (!this.isAbsolute(integrationFoldDir)) {
209-
integrationFolderDir = path.join(cypressProjDir, integrationFoldDir);
209+
integrationFolderDir = path.resolve(path.join(cypressProjDir, integrationFoldDir));
210210
}
211211
if (integrationFolderDir === cypressDir) return true;
212212
let parentTokens = cypressDir.split("/").filter((i) => i.length);

0 commit comments

Comments
 (0)