Skip to content

Isometric line figures that answer the pointer. For React and for anything with a DOM.

Skill: the look's side-by-side build runs build.mjs and the example by their path in the skill folder, so it resolves

Lucas Marques84bd370eb884
diff --git a/packages/hairline/test/skill/shape.test.ts b/packages/hairline/test/skill/shape.test.ts
index a24bc1f..ae08822 100644
--- a/packages/hairline/test/skill/shape.test.ts
+++ b/packages/hairline/test/skill/shape.test.ts
@@ -42,3 +42,8 @@ it("look.md and SKILL.md name the validator's checks and the bench's parameters
expect(text("validate.mjs"), id).toMatch(new RegExp(`^ \\* {3}${id} `, "m"));
}
});
+
+it("look.md runs build.mjs by its path in the skill folder, as SKILL.md says, so the command resolves from the working directory", () => {
+ expect(text("look.md")).toContain("`node <skill folder>/build.mjs <skill folder>/examples/terrain.js`");
+ expect(text("look.md")).not.toMatch(/`node build\.mjs /);
+});
diff --git a/skills/hairline-create/look.md b/skills/hairline-create/look.md
index 3b07e1f..b127f52 100644
--- a/skills/hairline-create/look.md
+++ b/skills/hairline-create/look.md
@@ -35,7 +35,7 @@ Answer each with yes or no. A no is fixed in the figure before anything is hande
11. **No words** (rule 10). Nothing in the drawing is a letter, a digit, an arrow or an icon.
12. **The page is clean.** No line under the stage reporting an error, and nothing on the console.
-If you are unsure whether the figure's weight is right, build an example the same way and put the two side by side: `node build.mjs examples/terrain.js`.
+If you are unsure whether the figure's weight is right, build an example the same way and put the two side by side: `node <skill folder>/build.mjs <skill folder>/examples/terrain.js`.
## Without a browser