fix: resolve test failure on Node.js < 20.11.0 by using new URL (#157)

This commit is contained in:
Manvi
2026-06-18 22:50:06 +02:00
committed by GitHub
parent 53fd1e850e
commit 55b7cb1925
+1 -1
View File
@@ -71,7 +71,7 @@ test("filterSkillBodyForMode keeps rule bullets that contain a colon", () => {
// Regression: rule bullets outside the Intensity section (e.g. the // Regression: rule bullets outside the Intensity section (e.g. the
// "No unrequested abstractions:" rule or the `ponytail:` comment convention) // "No unrequested abstractions:" rule or the `ponytail:` comment convention)
// contain a colon and must not be mistaken for mode-example lines. // 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 body = readFileSync(skillPath, "utf8");
const filtered = filterSkillBodyForMode(body, "full"); const filtered = filterSkillBodyForMode(body, "full");