Skip to content

Commit ea5f12f

Browse files
committed
test(codex): make availability environment-neutral
1 parent 5e41909 commit ea5f12f

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎src/local-agent-availability.test.ts‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@ import {
55
getLocalAgentProviderAvailabilitySnapshot,
66
} from "./local-agent-availability.js";
77

8-
assert.equal(checkLocalAgentProviderAvailability("codex").available, true);
8+
{
9+
const availability = checkLocalAgentProviderAvailability("codex", {
10+
...process.env,
11+
CODEX_COMMAND: "/definitely/missing/devspace-codex",
12+
});
13+
assert.equal(availability.available, false);
14+
assert.match(availability.reason ?? "", /executable not found/);
15+
}
916

1017
{
1118
const availability = checkLocalAgentProviderAvailability("pi", {

0 commit comments

Comments
 (0)