From 9823259eccddc43c3d520cceae03035da87a30e0 Mon Sep 17 00:00:00 2001 From: Charan Jagwani Date: Wed, 9 Sep 2026 12:22:09 -0700 Subject: [PATCH] test(cli): preserve gateway teardown mock exports Signed-off-by: Charan Jagwani --- .../actions/sandbox/destroy-gateway-runtime-evidence.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/actions/sandbox/destroy-gateway-runtime-evidence.test.ts b/src/lib/actions/sandbox/destroy-gateway-runtime-evidence.test.ts index 7975b8cba8d..b7dcb955bb0 100644 --- a/src/lib/actions/sandbox/destroy-gateway-runtime-evidence.test.ts +++ b/src/lib/actions/sandbox/destroy-gateway-runtime-evidence.test.ts @@ -19,7 +19,8 @@ vi.mock("node:child_process", () => ({ vi.mock("../../adapters/docker/volume", () => ({ dockerRemoveVolumesByPrefix: mocks.dockerRemoveVolumesByPrefix, })); -vi.mock("../../onboard/gateway-teardown-authority", () => ({ +vi.mock("../../onboard/gateway-teardown-authority", async (importOriginal) => ({ + ...(await importOriginal()), resolveGatewayTeardownAuthority: mocks.resolveGatewayTeardownAuthority, })); import { cleanupGatewayAfterLastSandbox } from "./destroy-gateway";