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

This commit is contained in:
Manvi 2026-06-19 02:20:06 +05:30 committed by GitHub
parent 53fd1e850e
commit 55b7cb1925
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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
// "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");