File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/core/prompts/__tests__ Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import "../../../utils/path" // Import path utils to get access to toPosix strin
88import { addCustomInstructions } from "../sections/custom-instructions"
99import { EXPERIMENT_IDS } from "../../../shared/experiments"
1010import { MultiSearchReplaceDiffStrategy } from "../../diff/strategies/multi-search-replace"
11+ import { getWorkspacePath } from "../../../utils/path"
1112
1213// Mock the sections
1314jest . 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" ,
You can’t perform that action at this time.
0 commit comments