From 593c6f39b9a5507e080680bc0e214b6a6982e5cf Mon Sep 17 00:00:00 2001 From: JonLuca DeCaro Date: Thu, 10 Oct 2024 15:19:16 -0700 Subject: [PATCH] fix path on windows? --- test/utils/path.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/utils/path.js b/test/utils/path.js index 7e5defa2..7fd02aa4 100644 --- a/test/utils/path.js +++ b/test/utils/path.js @@ -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; },