Skip to content

Commit

Permalink
fix path when saving generated unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonOstrez committed Jul 11, 2023
1 parent ad2d348 commit 7334780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function isPathInside(basePath, targetPath) {
function getTestFolderPath(filePath, rootPath) {
return path.join(
path.resolve(PYTHAGORA_UNIT_DIR),
path.dirname(filePath).replace(rootPath, ''),
path.dirname(filePath).replace(path.resolve(rootPath), ''),
path.basename(filePath, path.extname(filePath))
);
}
Expand Down

0 comments on commit 7334780

Please sign in to comment.