



























@@ -63,7 +63,9 @@ describe("startGatewayTailscaleExposure preserveFunnel", () => {
63636464expect(mocks.hasTailscaleFunnelRouteForPort).toHaveBeenCalledWith(18789);
6565expect(mocks.enableTailscaleServe).not.toHaveBeenCalled();
66-expect(logTailscale.info).toHaveBeenCalledWith(expect.stringMatching(/preserv/i));
66+expect(logTailscale.info.mock.calls).toEqual([
67+["serve skipped: preserving externally configured Tailscale Funnel for port 18789"],
68+]);
6769});
68706971it("notes resetOnExit is a no-op when preserveFunnel skips Serve", async () => {
@@ -79,9 +81,11 @@ describe("startGatewayTailscaleExposure preserveFunnel", () => {
7981});
80828183expect(mocks.enableTailscaleServe).not.toHaveBeenCalled();
82-expect(logTailscale.info).toHaveBeenCalledWith(
83-expect.stringMatching(/resetOnExit is a no-op/i),
84-);
84+expect(logTailscale.info.mock.calls).toEqual([
85+[
86+"serve skipped: preserving externally configured Tailscale Funnel for port 18789; resetOnExit is a no-op because no Serve route was applied this run",
87+],
88+]);
8589});
86908791it("falls back to enableTailscaleServe when preserveFunnel is true but no Funnel route exists for the port", async () => {
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。