fix(cli/tests): printf.exe doesn't exist on windows
@@ -17,7 +17,9 @@ const test: { [key: string]: (...args: any[]) => void | Promise<void> } = {
},
runRequired(): void {
const p = Deno.run({
- cmd: ["printf", "hello"],
+ cmd: Deno.build.os === "windows"
+ ? ["cmd.exe", "/c", "echo hello"]
+ : ["printf", "hello"],
});
p.close();
},
