Skip to content

Commit 77e5c23

Browse files
fix(tests): add collaboration block to outer test fixtures
The root-level test files (scorer/__tests__/engine.test.ts and cli/__tests__/commands.test.ts) had validEntry/newEntry fixtures without collaboration blocks. Since collaboration is now required, the schema.parse() calls were throwing unexpectedly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e9eb6dc commit 77e5c23

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

packages/cli/__tests__/commands.test.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,18 @@ describe('CLI Functions', () => {
147147
},
148148
tags: ['testing', 'automation', 'coding'],
149149
contributor: 'Test Contributor',
150-
version: '1.0.0'
150+
version: '1.0.0',
151+
collaboration: {
152+
pattern: 'linear',
153+
description: 'Linear workflow',
154+
sequence: [
155+
{ step: 1, d: 'delegation', label: 'Define scope', triggers_next: 'Scope agreed' },
156+
{ step: 2, d: 'description', label: 'Provide context', triggers_next: 'Context provided' },
157+
],
158+
transitions: [
159+
{ from: 'delegation', to: 'description', trigger: 'Scope agreed' },
160+
],
161+
},
151162
};
152163

153164
expect(() => knowledgeEntrySchema.parse(newEntry)).not.toThrow();

packages/scorer/__tests__/engine.test.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,18 @@ describe('Scorer Engine', () => {
160160
},
161161
tags: ['test'],
162162
contributor: 'Test Contributor',
163-
version: '1.0.0'
163+
version: '1.0.0',
164+
collaboration: {
165+
pattern: 'linear',
166+
description: 'Linear workflow',
167+
sequence: [
168+
{ step: 1, d: 'delegation', label: 'Define scope', triggers_next: 'Scope agreed' },
169+
{ step: 2, d: 'description', label: 'Provide context', triggers_next: 'Context provided' },
170+
],
171+
transitions: [
172+
{ from: 'delegation', to: 'description', trigger: 'Scope agreed' },
173+
],
174+
},
164175
};
165176

166177
expect(() => knowledgeEntrySchema.parse(validEntry)).not.toThrow();

0 commit comments

Comments
 (0)