Externalize audit pipeline services
This commit is contained in:
@@ -127,8 +127,13 @@ test("audits schema stores compact usedSkills metadata", () => {
|
||||
);
|
||||
hasPattern(
|
||||
usedSkillsSection,
|
||||
/category:\s*v\.string\(\)/,
|
||||
"usedSkills.category should be string.",
|
||||
/id:\s*v\.optional\(\s*v\.string\(\)\s*\)/,
|
||||
"usedSkills.id should be optional string.",
|
||||
);
|
||||
hasPattern(
|
||||
usedSkillsSection,
|
||||
/category:\s*v\.optional\(\s*v\.string\(\)\s*\)/,
|
||||
"usedSkills.category should be optional string.",
|
||||
);
|
||||
hasPattern(
|
||||
usedSkillsSection,
|
||||
@@ -179,8 +184,8 @@ test("audits.create accepts usedSkills validator and persists metadata payloads"
|
||||
);
|
||||
hasPattern(
|
||||
auditsSource,
|
||||
/v\.object\([\s\S]*?name:\s*v\.string\(\)[\s\S]*?category:\s*v\.string\(\)[\s\S]*?version:\s*v\.optional\(\s*v\.string\(\)\s*\)[\s\S]*?source:\s*v\.optional\(\s*v\.string\(\)\s*\)/,
|
||||
"audits.ts should define a reusable usedSkillsValidator.",
|
||||
/v\.object\([\s\S]*?id:\s*v\.optional\(\s*v\.string\(\)\s*\)[\s\S]*?name:\s*v\.string\(\)[\s\S]*?category:\s*v\.optional\(\s*v\.string\(\)\s*\)[\s\S]*?version:\s*v\.optional\(\s*v\.string\(\)\s*\)[\s\S]*?source:\s*v\.optional\(\s*v\.string\(\)\s*\)/,
|
||||
"audits.ts should define reusable v3-compatible usedSkillsValidator fields.",
|
||||
);
|
||||
|
||||
hasPattern(
|
||||
|
||||
Reference in New Issue
Block a user