diff --git a/test/utils/command-exists.test.js b/test/utils/command-exists.test.js index 95ca5f3b..42147985 100644 --- a/test/utils/command-exists.test.js +++ b/test/utils/command-exists.test.js @@ -2,7 +2,11 @@ const commandExists = require("../../src/utils/command-exists"); describe("commandExists()", () => { test("should return `true` for existing command", async () => { - await expect(commandExists("cat")).resolves.toEqual(true); + if (process.platform == "win32") { + await expect(commandExists("cmd")).resolves.toEqual(true); + } else { + await expect(commandExists("cat")).resolves.toEqual(true); + } }); test("should return `false` for non-existent command", async () => {