Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(storage): add test for storage bypass debt

Steven Enamakel13eab41bb4f3
diff --git a/scripts/__tests__/storage-bypass-debt.test.mjs b/scripts/__tests__/storage-bypass-debt.test.mjs
index b27da811da..8bfc40b87d 100644
--- a/scripts/__tests__/storage-bypass-debt.test.mjs
+++ b/scripts/__tests__/storage-bypass-debt.test.mjs
@@ -343,6 +343,8 @@ test("a Git-recorded move preserves only the original writer and allowance", ()
git("add", ".");
git("commit", "-m", "original writer");
git("update-ref", "refs/remotes/upstream/main", "HEAD");
+ // A pull request run sets GITHUB_BASE_REF, which selects origin/<base>.
+ git("update-ref", `refs/remotes/origin/${process.env.GITHUB_BASE_REF || "main"}`, "HEAD");
git("switch", "-c", "move");
mkdirSync(join(root, newPath, ".."), { recursive: true });
git("mv", oldPath, newPath);