/**
 * shell-env.test.ts — Regression coverage for automated shell environment.
 *
 * Purpose: keep agent-run git commands non-interactive so operations such as
 * `git rebase --continue` cannot hang by opening an editor.
 */

import assert from "node:assert/strict";
import { describe, it } from "vitest";
import { getShellEnv } from "./shell.js";

describe("getShellEnv", () => {
	it("getShellEnv_when_git_rebase_continues_disables_editor_prompts", () => {
		const env = getShellEnv();

		assert.equal(env.GIT_TERMINAL_PROMPT, "0");
		assert.equal(env.GIT_EDITOR, "true");
		assert.equal(env.GIT_SEQUENCE_EDITOR, "true");
		assert.equal(env.GIT_ASKPASS, "");
		assert.equal(env.VISUAL, "true");
		assert.equal(env.EDITOR, "true");
	});
});
