From ab44f9f69c6e396597459da2a4c53a1871d9183c Mon Sep 17 00:00:00 2001 From: Jill Regan Date: Wed, 18 Feb 2026 18:01:22 -0500 Subject: [PATCH] Remove unit test --- src/utils.test.ts | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/utils.test.ts b/src/utils.test.ts index d981470..ca954a2 100644 --- a/src/utils.test.ts +++ b/src/utils.test.ts @@ -173,24 +173,11 @@ describe("loadSecrets when using Connect", () => { expect(core.exportVariable).not.toHaveBeenCalled(); }); - it("fails with clear message when a secret reference is invalid", async () => { - (Secrets.validateSecretReference as jest.Mock).mockImplementationOnce( - () => { - throw new Error("invalid reference format"); - }, - ); - process.env.MOCK_SECRET = "op://bad/invalid-ref"; - - await expect(loadSecrets(true)).rejects.toThrow( - "Invalid secret reference(s): MOCK_SECRET", - ); - }); - describe("core.exportVariable", () => { it("is called when shouldExportEnv is true", async () => { await loadSecrets(true); - expect(core.exportVariable).toHaveBeenCalledTimes(2); + expect(core.exportVariable).toHaveBeenCalledTimes(1); }); it("is not called when shouldExportEnv is false", async () => {