@pennyfarthing/shared 11.4.0 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -64,12 +64,12 @@ describe('Story 9-4: Skill Documentation Generator', () => {
|
|
|
64
64
|
assert.ok(result.content.startsWith('#'), 'Should start with a heading');
|
|
65
65
|
assert.ok(result.content.includes('##'), 'Should have section headings');
|
|
66
66
|
});
|
|
67
|
-
it('should include all
|
|
67
|
+
it('should include all 23 skills from registry', async () => {
|
|
68
68
|
// AC1: All skills from registry should appear in output
|
|
69
69
|
const result = await generateSkillDocs({
|
|
70
70
|
registryPath: REGISTRY_PATH,
|
|
71
71
|
});
|
|
72
|
-
assert.ok(result.skillCount ===
|
|
72
|
+
assert.ok(result.skillCount === 23, `Should include all 23 skills, got ${result.skillCount}`);
|
|
73
73
|
// Check for a sample of known skills
|
|
74
74
|
const expectedSkills = ['testing', 'jira', 'code-review', 'changelog', 'theme'];
|
|
75
75
|
for (const skill of expectedSkills) {
|
|
@@ -29,7 +29,7 @@ describe('Story 9-2: Skill Search Utility', () => {
|
|
|
29
29
|
const results = await searchSkills({});
|
|
30
30
|
assert.ok(Array.isArray(results), 'Should return an array');
|
|
31
31
|
assert.ok(results.length > 0, 'Should return skills from registry');
|
|
32
|
-
assert.ok(results.length ===
|
|
32
|
+
assert.ok(results.length === 23, 'Should return all 23 skills when no filters');
|
|
33
33
|
});
|
|
34
34
|
it('should return skills with required fields', async () => {
|
|
35
35
|
// AC1: Each skill should have core metadata
|
|
@@ -73,10 +73,10 @@ describe('Story 9-2: Skill Search Utility', () => {
|
|
|
73
73
|
const skillNames = results.map(s => s.name);
|
|
74
74
|
assert.ok(skillNames.includes('pf-testing'), 'Should include testing skill for vitest keyword');
|
|
75
75
|
});
|
|
76
|
-
it('should return
|
|
76
|
+
it('should return 4 skills when filtering by --category development', async () => {
|
|
77
77
|
// AC2: Category filter returns expected count
|
|
78
78
|
const results = await searchSkills({ category: 'development' });
|
|
79
|
-
assert.strictEqual(results.length,
|
|
79
|
+
assert.strictEqual(results.length, 4, 'Should return 4 development skills');
|
|
80
80
|
assert.ok(results.every(s => s.category === 'development'), 'All results should be development category');
|
|
81
81
|
});
|
|
82
82
|
it('should combine multiple filters with AND logic', async () => {
|