diff --git a/test/test-util/test-util.ts b/test/test-util/test-util.ts index 73e904f..3bde6d9 100644 --- a/test/test-util/test-util.ts +++ b/test/test-util/test-util.ts @@ -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}`; }