Skip to content

Commit

Permalink
windows test fix attemption
Browse files Browse the repository at this point in the history
  • Loading branch information
dev2-nomo committed Nov 28, 2023
1 parent 9f3e75a commit 960bad8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test-util/test-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { join } from "path";

export function buildCliCommand(args: string) {
if (process.platform === "win32") {
return `node "${join(process.cwd(), "bin", "nomo-webon-cli")}" ${args}`;
return `node "${join(process.cwd(), "bin", "nomo-webon-cli").replace(
/\\/g,
"\\\\"
)}" ${args}`;
} else {
return `${join(process.cwd(), "bin", "nomo-webon-cli")} ${args}`;
}
Expand Down

0 comments on commit 960bad8

Please sign in to comment.