Skip to content

A personal agent with a browser, terminal, files, and work that keeps going built with CopilotKit and AG-UI.

TypeScript

fix: skip the POSIX-only Docker runner test on Windows (#63)

Asem ahmedb42087255cf8
diff --git a/tests/computer-runner.test.ts b/tests/computer-runner.test.ts
index 20a30a6..4cd4ab7 100644
--- a/tests/computer-runner.test.ts
+++ b/tests/computer-runner.test.ts
@@ -5,7 +5,12 @@ import { join } from "node:path";
import { test } from "node:test";
import { runDocker } from "../apps/server/src/computer.ts";
-test("Docker subprocess uses literal argv, strips provider credentials, caps output and bounds hangs", async () => {
+// The fake `docker` below is a #! script, which Windows cannot execute without a shell.
+const posixOnly = process.platform === "win32" && "the fake docker CLI is a POSIX #! script";
+
+test("Docker subprocess uses literal argv, strips provider credentials, caps output and bounds hangs", {
+ skip: posixOnly,
+}, async () => {
const directory = await mkdtemp(join(tmpdir(), "openmuse-docker-runner-"));
const previousPath = process.env.PATH;
const previousKey = process.env.OPENMUSE_TEST_SECRET;