Skip to content

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

test(visual-check): stub Chrome discovery in the summary regression (#788)

robll-v135541cd0bf8b
diff --git a/test/visual-check.test.mjs b/test/visual-check.test.mjs
index 1292d8a1..a05074c9 100644
--- a/test/visual-check.test.mjs
+++ b/test/visual-check.test.mjs
@@ -32,7 +32,11 @@ const png = Buffer.from('89504e470d0a1a0a', 'hex');
test('summary indexes every captured viewport/theme and preserves failed diagnostics', async () => {
const input = artifact('summary-captures.html');
- const result = await runVisualCheck({ artifactPath: input, browserFactory: () => fakeBrowser() });
+ const result = await runVisualCheck({
+ artifactPath: input,
+ chromePath: '/fake/chrome',
+ browserFactory: () => fakeBrowser(),
+ });
const receipt = result.receipt;
const summary = summarizeBrowserEvidence(receipt);
assert.equal(summary.visualReview, 'pending');