From cb7e719e925c09defcd9a7bace1bc0637766a5b0 Mon Sep 17 00:00:00 2001 From: Casimir Arlabosse <11591428+casiar@users.noreply.github.com> Date: Tue, 27 Oct 2026 15:46:28 +0800 Subject: [PATCH] test: resolve golden fixture path with import.meta.dirname new URL(import.meta.url).pathname keeps percent-encoding, so the test failed with ENOENT when the checkout path contains a space. Use import.meta.dirname like the other tests. Co-Authored-By: Claude Opus 5.5 --- tests/schema-stamps.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/schema-stamps.test.ts b/tests/schema-stamps.test.ts index bfb1cd3..acb4cda 100644 --- a/tests/schema-stamps.test.ts +++ b/tests/schema-stamps.test.ts @@ -110,7 +110,7 @@ test("render-settings: its write stamps the family sidecar too", () => { // ── the fixtures stay the legacy pin: golden data reads unstamped ─────────── test("golden fixtures are deliberately the unstamped legacy shape (lazy v1 = current-valid)", () => { - const here = path.dirname(new URL(import.meta.url).pathname); + const here = import.meta.dirname; const teach = JSON.parse(fs.readFileSync(path.join(here, "fixtures", "golden-data", "chats", "chat_mv27rrra_feff23b6.json"), "utf8")); assert.equal(teach.version, undefined, "fixture records pin the unstamped read path"); assert.ok(!fs.existsSync(path.join(here, "fixtures", "golden-data", "graph", "format.json")), "no sidecar in the fixture graph dir");