From 4c1dbaa38137991fccbb604645dd8bbf09099b51 Mon Sep 17 00:00:00 2001 From: Elias Sturim <267715325+sturimcode@users.noreply.github.com> Date: Tue, 8 Sep 2026 20:34:25 -0400 Subject: [PATCH] test: distinguish validator errors from startup crashes Co-Authored-By: GPT-6 --- test/cli.test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/cli.test.js b/test/cli.test.js index 50f65ff..3bc3496 100644 --- a/test/cli.test.js +++ b/test/cli.test.js @@ -18,6 +18,8 @@ test('validate CLI fails on a broken game file', () => { { cwd: root, encoding: 'utf8' } ); assert.strictEqual(run.status, 1); + assert.match(run.stdout, /games checked: 1, reports checked: \d+/); + assert.match(run.stderr, /FAIL test[\\/]fixtures[\\/]broken-game\.json:/); }); test('validate CLI errors when --game has no following value', () => {