Skip to content

Commit 21656fa

Browse files
committed
fix: windows build
1 parent 51fb66e commit 21656fa

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/sparse-brace-expansion.test.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ test("sync expands brace patterns for git sparse-checkout", async () => {
9797
const previousPathExt = process.env.PATHEXT;
9898
const previousGitDir = process.env.DOCS_CACHE_GIT_DIR;
9999
const nextPath =
100-
process.platform === "win32" ? binDir : `${binDir}:${previousPath ?? ""}`;
100+
process.platform === "win32"
101+
? `${binDir};${previousPath ?? ""}`
102+
: `${binDir}:${previousPath ?? ""}`;
101103
const nextPathExt =
102104
process.platform === "win32" ? ".CMD;.BAT;.EXE;.COM" : previousPathExt;
103105

@@ -199,7 +201,9 @@ test("sync expands default brace pattern when no include specified", async () =>
199201
const previousPathExt = process.env.PATHEXT;
200202
const previousGitDir = process.env.DOCS_CACHE_GIT_DIR;
201203
const nextPath =
202-
process.platform === "win32" ? binDir : `${binDir}:${previousPath ?? ""}`;
204+
process.platform === "win32"
205+
? `${binDir};${previousPath ?? ""}`
206+
: `${binDir}:${previousPath ?? ""}`;
203207
const nextPathExt =
204208
process.platform === "win32" ? ".CMD;.BAT;.EXE;.COM" : previousPathExt;
205209

0 commit comments

Comments
 (0)