From 669e234d1e4c11fdfde9f6774d7683c6b1fc196b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobi=20L=C3=BCtke?= Date: Sat, 9 May 2026 18:56:06 +0000 Subject: [PATCH] test: index MCP HTTP fixture before query --- test/cli.test.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/cli.test.ts b/test/cli.test.ts index 070113b..b5758c5 100644 --- a/test/cli.test.ts +++ b/test/cli.test.ts @@ -1537,6 +1537,19 @@ describe("mcp http daemon", () => { ); expect(addResult.exitCode).toBe(0); + const updateResult = await runQmd( + ["--index", customIndex, "update"], + { + dbPath: daemonDbPath, + configDir: customConfigDir, + env: { + INDEX_PATH: "", + XDG_CACHE_HOME: customCacheDir, + }, + }, + ); + expect(updateResult.exitCode).toBe(0); + const port = randomPort(); const proc = spawnHttpServer(port, { args: ["--index", customIndex],