Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 01c1b1eec4c24088dd0ddab556e2bcd208c5ce79
parent c3963bd69359a69891f185619ff5fe594b0d67dc
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon, 28 Sep 2026 12:12:37 -0400

e2e: an accepted cover is recorded relative to the reports tree

deck.spec's disjoint-accept test reads the fixture's thumb-accepted.json
after the CLI ran and expects alpha-b's `out` as thumbs/alpha-b.jpg: the
run log holds the absolute form, and an accept from the page must not
write a machine's path into the tracked file. With 7490472b's
accept-thumb.mjs it fails (received the fixture's absolute path).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

Diffstat:
Mumtool/e2e/deck.spec.ts | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/umtool/e2e/deck.spec.ts b/umtool/e2e/deck.spec.ts @@ -281,6 +281,14 @@ test("accepting a disjoint cover runs the CLI and holds the rule", async ({ requ const view = await (await request.get("/api/browse/thumbs?song=alpha")).json(); expect(view.check.ok).toBe(true); expect(view.check.videos).toBe(8); + + // The CLI records `out` RELATIVE to the reports tree. The fixture's run log + // holds the absolute form, and the real thumb-accepted.json is tracked: an + // accept from this page must not write a machine's path back into it. + const onDisk = JSON.parse( + readFileSync(path.join(process.cwd(), ".e2e-song", "code", "thumb-accepted.json"), "utf8"), + ) as { thumbs: Record<string, { out: string }> }; + expect(onDisk.thumbs["alpha-b"].out).toBe(path.join("thumbs", "alpha-b.jpg")); }); // ---------------------------------------------------------------------------