mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-09 06:28:59 +02:00
test(dev-setup): update LINK_ROOT source pin to the parsePathFlag shape
Companion to the gen-skill-docs parsePathFlag extraction: the pin still asserts the same invariant (LINK_ROOT defaults to OUT_DIR, so an in-place render stays a byte-exact no-op) against the new expression. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
20e5cd2ab4
commit
31324722f5
@@ -59,7 +59,7 @@ describe('gen-skill-docs: section rewrite is gated on --out-dir', () => {
|
||||
// #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(gen).toContain("parsePathFlag('--link-root') ?? OUT_DIR");
|
||||
expect(body).toContain('sections'); // surgical: regex targets only /sections/ paths
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user