fix: resolve test failure on Node.js < 20.11.0 by using new URL (#157)
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user