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(view): the prose fixture follows the help rows' command names [N26]

Corey Olson9e5975aa4b7b
diff --git a/test/cockpit/prose.test.js b/test/cockpit/prose.test.js
index d42a0074..5adb2601 100644
--- a/test/cockpit/prose.test.js
+++ b/test/cockpit/prose.test.js
@@ -85,8 +85,8 @@ test('the view chips a command the CLI adds [N26]', async (t) => {
const source = readFileSync(helpFile, 'utf8');
writeFileSync(helpFile, source
.replace('all: ALL_HELP,', "all: ALL_HELP + '\\n pullboard blueprint apply <path> a copied CLI extension',")
- .replace('commands: Object.freeze(commandHelpRows(ALL_HELP)),',
- "commands: Object.freeze({ ...commandHelpRows(ALL_HELP), 'blueprint inspect': { usages: ['pullboard blueprint inspect <path>'] } }),"));
+ .replace('commands: Object.freeze(commandHelpRows(ALL_HELP, commandNames)),',
+ "commands: Object.freeze({ ...commandHelpRows(ALL_HELP, commandNames), 'blueprint inspect': { usages: ['pullboard blueprint inspect <path>'] } }),"));
const copiedBin = join(cli, 'bin', 'pullboard.js');
box.run(demo.repo, 'shout', 'all', 'A CLI extension says pullboard blueprint apply <file> and pullboard blueprint inspect <path>.');
const view = await startView(box, { bin: copiedBin });