perf(daemon): import install config helpers directly

This commit is contained in:
Vincent Koc
2026-04-13 19:22:41 +01:00
parent 80b1fa17bf
commit 55a3c8ea07
2 changed files with 6 additions and 2 deletions

View File

@@ -65,9 +65,12 @@ vi.mock("../../bootstrap/node-startup-env.js", () => ({
resolveNodeStartupTlsEnvironment: resolveNodeStartupTlsEnvironmentMock, resolveNodeStartupTlsEnvironment: resolveNodeStartupTlsEnvironmentMock,
})); }));
vi.mock("../../config/config.js", () => ({ vi.mock("../../config/io.js", () => ({
loadConfig: loadConfigMock, loadConfig: loadConfigMock,
readBestEffortConfig: loadConfigMock, readBestEffortConfig: loadConfigMock,
}));
vi.mock("../../config/paths.js", () => ({
resolveGatewayPort: resolveGatewayPortMock, resolveGatewayPort: resolveGatewayPortMock,
})); }));

View File

@@ -5,7 +5,8 @@ import {
isGatewayDaemonRuntime, isGatewayDaemonRuntime,
} from "../../commands/daemon-runtime.js"; } from "../../commands/daemon-runtime.js";
import { resolveGatewayInstallToken } from "../../commands/gateway-install-token.js"; import { resolveGatewayInstallToken } from "../../commands/gateway-install-token.js";
import { readBestEffortConfig, resolveGatewayPort } from "../../config/config.js"; import { readBestEffortConfig } from "../../config/io.js";
import { resolveGatewayPort } from "../../config/paths.js";
import { resolveGatewayService } from "../../daemon/service.js"; import { resolveGatewayService } from "../../daemon/service.js";
import { isNonFatalSystemdInstallProbeError } from "../../daemon/systemd.js"; import { isNonFatalSystemdInstallProbeError } from "../../daemon/systemd.js";
import { defaultRuntime } from "../../runtime.js"; import { defaultRuntime } from "../../runtime.js";