From f6076da8e439de1cf153a9d6c924e870ec7992c4 Mon Sep 17 00:00:00 2001 From: Garry Tan Date: Mon, 31 Aug 2026 21:38:22 +0000 Subject: [PATCH] test: rewrite gate pin follows the LINK_ROOT rename (#2692) Co-Authored-By: Claude Fable 5 --- test/dev-setup-render-isolation.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/dev-setup-render-isolation.test.ts b/test/dev-setup-render-isolation.test.ts index fbfeb790c..d365f25b2 100644 --- a/test/dev-setup-render-isolation.test.ts +++ b/test/dev-setup-render-isolation.test.ts @@ -56,7 +56,10 @@ describe('gen-skill-docs: section rewrite is gated on --out-dir', () => { expect(gen).toContain('function rewriteSectionBase'); const idx = gen.indexOf('function rewriteSectionBase'); const body = gen.slice(idx, idx + 400); - expect(body).toContain('if (!OUT_DIR) return content'); + // #2692: the gate is LINK_ROOT (defaults to OUT_DIR — still null when + // --out-dir is unset, so the in-place render stays a byte-exact no-op). + expect(body).toContain('if (!LINK_ROOT) return content'); + expect(gen).toContain('if (!LINK_ROOT_ARG) return OUT_DIR;'); expect(body).toContain('sections'); // surgical: regex targets only /sections/ paths }); });