From 2b8009cf75fdbd2b58d7fe43907b7772e68d0865 Mon Sep 17 00:00:00 2001 From: "vercel[bot]" <35613825+vercel[bot]@users.noreply.github.com> Date: Fri, 20 Nov 2026 02:45:39 +0000 Subject: [PATCH] test(cli): expect the search hint #767 gives on an unknown command's help MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Nicolás Montone <83733486+NicolasMontone@users.noreply.github.com> --- packages/board/test/cli-commands.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/board/test/cli-commands.test.ts b/packages/board/test/cli-commands.test.ts index a8917075..0135425a 100644 --- a/packages/board/test/cli-commands.test.ts +++ b/packages/board/test/cli-commands.test.ts @@ -79,7 +79,7 @@ describe("the CLI's commands, as data", () => { }) // And what it goes by here, when it goes by another name, as without --help. expect((await capture(() => main(['search', '--help'], app))).stderr).toBe((await capture(() => main(['search'], app))).stderr) - expect((await capture(() => main(['search', '--help'], app))).stderr).toMatch(/^error: Unknown command search for vb\.\n\n {2}Read a channel and look through it/) + expect((await capture(() => main(['search', '--help'], app))).stderr).toMatch(/^error: Unknown command search for vb\.\n\n {2}Search a channel's latest threads, a page at a time/) // With no word, or `help` alone, it's the list of every command. for (const argv of [['--help'], ['help']]) expect((await capture(() => main(argv, app))).stdout, argv.join(' ')).toMatch(/^board \S+: /) })