import { describe, expect, test } from "bun:test"; import { shouldUseLocalPrCheckout } from "./plannotator-browser"; describe("shouldUseLocalPrCheckout", () => { test("uses local PR checkout by default", () => { expect(shouldUseLocalPrCheckout({})).toBe(true); expect(shouldUseLocalPrCheckout({ useLocal: true })).toBe(true); }); test("honors the Pi --no-local opt-out", () => { expect(shouldUseLocalPrCheckout({ useLocal: false })).toBe(false); }); });