Improve audit pipeline and outreach review
This commit is contained in:
@@ -7,7 +7,7 @@ import { parseSkillsRegistry, toAuditUsedSkill } from "../lib/skills-registry";
|
||||
test("parseSkillsRegistry parses v3 yaml metablocks from the MVP registry source", () => {
|
||||
const parsed = parseSkillsRegistry(LOCAL_AUDIT_SKILL_REGISTRY_SOURCE);
|
||||
|
||||
assert.equal(parsed.length, 9);
|
||||
assert.equal(parsed.length, 10);
|
||||
const visualDesign = parsed.find((entry) => entry.id === "visual-design");
|
||||
assert.ok(visualDesign);
|
||||
assert.equal(visualDesign.title, "Visueller Gesamteindruck & Zeitgemäßheit");
|
||||
@@ -23,6 +23,21 @@ test("parseSkillsRegistry parses v3 yaml metablocks from the MVP registry source
|
||||
assert.fail("Expected visual-design instructions to be parsed.");
|
||||
}
|
||||
assert.match(instructions, /Beurteile den ersten visuellen Eindruck/);
|
||||
|
||||
const critique = parsed.find((entry) => entry.id === "impeccable-critique");
|
||||
assert.ok(critique);
|
||||
assert.equal(critique.title, "Impeccable Critique Review");
|
||||
assert.equal(critique.appliesWhen, "website_exists");
|
||||
assert.deepEqual(critique.inputs, [
|
||||
"desktop_screenshot",
|
||||
"mobile_screenshot",
|
||||
"markdown",
|
||||
"dom",
|
||||
]);
|
||||
assert.match(
|
||||
critique.instructions ?? "",
|
||||
/Nielsen|kognitive Last|AI-Slop/,
|
||||
);
|
||||
});
|
||||
|
||||
test("toAuditUsedSkill exposes stable ids for v3 registry entries", () => {
|
||||
|
||||
Reference in New Issue
Block a user