Skip to content

Commit ce9da97

Browse files
test(cli-docs-demo): include detail breakdown in assertion message
Co-authored-by: anode-agent[bot] <283895490+anode-agent[bot]@users.noreply.github.com>
1 parent fc01309 commit ce9da97

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

test/eval/cli-docs-demo.test.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,9 @@ describe("CLI/docs/demo parity eval", () => {
1414
expect(r.networkCalls).toBe(0);
1515
expect(r.pipeFailures).toBe(0);
1616
expect(r.argValidationFailures).toBe(0);
17-
if (!r.pass) {
18-
// CI-only diagnostic: dump the per-check breakdown so we can see which
19-
// assertion regressed without re-running the suite by hand.
20-
// biome-ignore lint/suspicious/noConsole: needed for CI triage
21-
console.error("cli-docs-demo eval detail:\n" + r.detail.join("\n"));
22-
}
23-
expect(r.pass).toBe(true);
17+
// Surface the per-check breakdown on failure so CI logs show which gate
18+
// regressed without re-running the suite by hand.
19+
expect.soft(r.detail.join("\n")).toContain("✓");
20+
expect(r.pass, `cli-docs-demo eval detail:\n${r.detail.join("\n")}`).toBe(true);
2421
}, 60000);
2522
});

0 commit comments

Comments
 (0)