test(perf): bypass daemon install token-generation path in coverage test

This commit is contained in:
Peter Steinberger
2026-03-02 12:24:03 +00:00
parent 916b0e6609
commit ba3957ad77

View File

@@ -181,7 +181,15 @@ describe("daemon-cli coverage", () => {
serviceIsLoaded.mockResolvedValueOnce(false);
serviceInstall.mockClear();
await runDaemonCommand(["daemon", "install", "--port", "18789", "--json"]);
await runDaemonCommand([
"daemon",
"install",
"--port",
"18789",
"--token",
"test-token",
"--json",
]);
expect(serviceInstall).toHaveBeenCalledTimes(1);
const parsed = parseFirstJsonRuntimeLine<{