Skip to content

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

test: verify timing diagnostics through the validate command

杨嘉伟c8d58414c7e4
diff --git a/test/waterfall-rendering.test.mjs b/test/waterfall-rendering.test.mjs
index 946db252..a96c097d 100644
--- a/test/waterfall-rendering.test.mjs
+++ b/test/waterfall-rendering.test.mjs
@@ -82,7 +82,7 @@ test('waterfall: unrepresentable derived timing is rejected without writing inva
assert.equal(result.status, 1, result.stderr || result.error?.message);
assert.match(result.stderr, /finite/);
assert.equal(fs.existsSync(result.output), false);
- const cli = spawnSync(process.execPath, [path.join(skillRoot, 'bin/archify.mjs'), 'render', 'waterfall', result.input, result.output, '--json'], { encoding: 'utf8', timeout: 10000 });
+ const cli = spawnSync(process.execPath, [path.join(skillRoot, 'bin/archify.mjs'), 'validate', 'waterfall', result.input, '--json'], { encoding: 'utf8', timeout: 10000 });
assert.equal(cli.status, 1, cli.stderr || cli.stdout);
const receipt = JSON.parse(cli.stdout);
const diagnostic = receipt.diagnostics.find(({ code }) => code === 'waterfall/invalid-timing');