Skip to content

Commit 7334780

Browse files
committed
fix path when saving generated unit test
1 parent ad2d348 commit 7334780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function isPathInside(basePath, targetPath) {
3232
function getTestFolderPath(filePath, rootPath) {
3333
return path.join(
3434
path.resolve(PYTHAGORA_UNIT_DIR),
35-
path.dirname(filePath).replace(rootPath, ''),
35+
path.dirname(filePath).replace(path.resolve(rootPath), ''),
3636
path.basename(filePath, path.extname(filePath))
3737
);
3838
}

0 commit comments

Comments
 (0)