Skip to content

Commit

Permalink
fix path on windows?
Browse files Browse the repository at this point in the history
  • Loading branch information
jonluca committed Oct 10, 2024
1 parent e90af00 commit 593c6f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/utils/path.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ function filesystemPathHelpers () {
*/
abs (file) {
file = nodePath.join(testsDir, file || nodePath.sep);
if (isWindows) {
file = file.replace(/\\/g, "/"); // Convert Windows separators to URL separators
}

return file;
},

Expand Down

0 comments on commit 593c6f3

Please sign in to comment.