From a67ba8326befe2d78bfa4f15b46ac0b0c60a6573 Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Mon, 3 Feb 2025 13:35:02 -0500 Subject: [PATCH] Fix mock --- src/core/prompts/__tests__/system.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/prompts/__tests__/system.test.ts b/src/core/prompts/__tests__/system.test.ts index d4edea8046..7f436740ad 100644 --- a/src/core/prompts/__tests__/system.test.ts +++ b/src/core/prompts/__tests__/system.test.ts @@ -65,10 +65,14 @@ jest.mock("os", () => ({ homedir: () => "/home/user", })) -jest.mock("default-shell", () => "/bin/bash") +jest.mock("default-shell", () => "/bin/zsh") jest.mock("os-name", () => () => "Linux") +jest.mock("../../../utils/shell", () => ({ + getShell: () => "/bin/zsh", +})) + // Create a mock ExtensionContext const mockContext = { extensionPath: "/mock/extension/path",