From 960bad862516b6445cef7de99723cb0467eb2166 Mon Sep 17 00:00:00 2001 From: dev-ig Date: Tue, 28 Nov 2023 16:28:08 +0100 Subject: [PATCH] windows test fix attemption --- test/test-util/test-util.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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}`; }