We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 842baa8 commit 9558aabCopy full SHA for 9558aab
test/utils/platform.ts
@@ -1,4 +1,5 @@
1
import os from "node:os";
2
+import path from "node:path";
3
import { expect } from "vitest";
4
5
export const isWindows = os.platform() === "win32";
@@ -44,7 +45,7 @@ export function quoteCommand(value: string): string {
44
45
}
46
47
function normalizePath(p: string): string {
- return isWindows ? p.replace(/\\/g, "/") : p;
48
+ return p.replaceAll(path.sep, "/");
49
50
51
function getPlatformQuote(): string {
0 commit comments