From ccf15f754e6066b1d80688aacff6d4b88c6a418a Mon Sep 17 00:00:00 2001 From: ManviKamboz Date: Thu, 18 Jun 2026 18:27:48 +0530 Subject: [PATCH] fix: resolve test failure on Node.js < 20.11.0 by using new URL --- pi-extension/test/helpers.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pi-extension/test/helpers.test.js b/pi-extension/test/helpers.test.js index bbcdfd2..aca16bf 100644 --- a/pi-extension/test/helpers.test.js +++ b/pi-extension/test/helpers.test.js @@ -71,7 +71,7 @@ test("filterSkillBodyForMode keeps rule bullets that contain a colon", () => { // Regression: rule bullets outside the Intensity section (e.g. the // "No unrequested abstractions:" rule or the `ponytail:` comment convention) // contain a colon and must not be mistaken for mode-example lines. - const skillPath = join(import.meta.dirname, "..", "..", "skills", "ponytail", "SKILL.md"); + const skillPath = new URL("../../skills/ponytail/SKILL.md", import.meta.url); const body = readFileSync(skillPath, "utf8"); const filtered = filterSkillBodyForMode(body, "full");