Skip to content

Commit 8a00b6c

Browse files
author
xiong
committed
fix: system test
1 parent 94dd3c5 commit 8a00b6c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/prompts/__tests__/system.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import "../../../utils/path" // Import path utils to get access to toPosix strin
88
import { addCustomInstructions } from "../sections/custom-instructions"
99
import { EXPERIMENT_IDS } from "../../../shared/experiments"
1010
import { MultiSearchReplaceDiffStrategy } from "../../diff/strategies/multi-search-replace"
11+
import { getWorkspacePath } from "../../../utils/path"
1112

1213
// Mock the sections
1314
jest.mock("../sections/modes", () => ({
@@ -736,7 +737,7 @@ describe("addCustomInstructions", () => {
736737

737738
it("should exclude MCP server creation info when disabled", async () => {
738739
const mockMcpHub = createMockMcpHub()
739-
740+
;(getWorkspacePath as jest.Mock).mockReturnValue("/mock/workspace")
740741
const prompt = await SYSTEM_PROMPT(
741742
mockContext,
742743
"/test/path",

0 commit comments

Comments
 (0)