From 2b24f2914dffab76f711354da1b18bee78ae1026 Mon Sep 17 00:00:00 2001 From: RelayStack <181901420+RelayStack@users.noreply.github.com> Date: Sun, 11 Oct 2026 22:49:07 +0200 Subject: [PATCH] fix: CWD-independent fixture path in limit test --- seo-toolkit/test.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/seo-toolkit/test.mjs b/seo-toolkit/test.mjs index 1e2ea6a..d42adc8 100755 --- a/seo-toolkit/test.mjs +++ b/seo-toolkit/test.mjs @@ -162,7 +162,10 @@ test("renderLlmsFull inlines url + body per page", async () => { test("collectFull respects the limit", async () => { const { collectFull } = await import("./llms-full.mjs"); - const pages = await collectFull("../notes", "https://example.com", 1); + const { join, dirname } = await import("node:path"); + const { fileURLToPath } = await import("node:url"); + const notes = join(dirname(fileURLToPath(import.meta.url)), "..", "notes"); + const pages = await collectFull(notes, "https://example.com", 1); assert.equal(pages.length, 1); });