Skip to content

Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.

test(blueprint): fit row warning assertion under cap [S1,I1]

Corey Olson11621b28062a
diff --git a/test/blueprint.test.js b/test/blueprint.test.js
index b57f0c89..1f877b2f 100644
--- a/test/blueprint.test.js
+++ b/test/blueprint.test.js
@@ -92,10 +92,7 @@ test('blueprint add files a blueprint as drafts [S1,I1]', () => {
for (const row of rows) assert.ok(!doctrine.rows.some((entry) => entry.id === row.id), `${row.id} is unique across SPEC.md and DOCTRINE.md`);
const check = box.run('spec', 'check');
assert.equal(check.status, 0, check.stdout + check.stderr);
- const checkLines = (check.stdout + check.stderr).split('\n');
- const blueprintLengthWarnings = rows.filter((row) => checkLines.some((line) => line.includes(` ${row.id} warning: `)
- && /words; rows stay under/u.test(line)));
- assert.deepEqual(blueprintLengthWarnings.map((row) => row.id), [], 'a reason or the choices do not count toward the blueprint row length');
+ assert.equal(rows.some(({ id }) => (check.stdout + check.stderr).split('\n').some((line) => line.includes(` ${id} warning: `) && line.includes('words; rows stay under'))), false, 'a reason or the choices do not count toward the blueprint row length');
// Starter items: open, citing the new rows, the third waiting on the first.
const items = json(box, 'list', '--all').items.sort((a, b) => a.item_id - b.item_id);