Skip to content

Commit f1e156b

Browse files
committed
Running tests on shell commands is probably not the best idea
1 parent c707fae commit f1e156b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/execcommand.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import { execute } from "../src/util/execcommand";
44

55
suite("Execute Command", () => {
66
test("Simple command", async () => {
7-
const commandResult = await execute("node", ["--version"]);
7+
const command = process.platform === "win32" ? "cd" : "pwd";
8+
const commandResult = await execute(command, []);
89

910
assert.ok(commandResult);
1011
});

0 commit comments

Comments
 (0)