fix: OCAS_DIR → OCAS_HOME in test helpers #59

Merged
xiaomo merged 6 commits from fix/58-test-isolation into main 2026-06-04 12:16:21 +00:00
Showing only changes of commit 596c05bfcc - Show all commits
+3 -3
View File
@@ -89,10 +89,10 @@ describe("prompt commands", () => {
});
test("prompt help subcommand is suppressed", { timeout: 30_000 }, () => {
const output = execFileSync("npx", ["tsx", "src/cli.ts", "prompt", "--help"], {
cwd: join(__dirname, "..", ".."),
const cliPath = join(__dirname, "..", "..", "dist", "cli.js");
const output = execFileSync("node", [cliPath, "prompt", "--help"], {
encoding: "utf-8",
env: { ...process.env, PATH: `/opt/homebrew/bin:${process.env.PATH}` },
env: { ...process.env },
});
expect(output).not.toMatch(/help\s+\[command\]/i);
expect(output).toContain("usage");