test: index MCP HTTP fixture before query

This commit is contained in:
Tobi Lütke 2026-05-09 18:56:06 +00:00
parent b32ee4e660
commit 669e234d1e
No known key found for this signature in database

View File

@ -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],