Skip to content

Commit ee32737

Browse files
committed
fix: Mocks for existing tests
1 parent 5203873 commit ee32737

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/core/tools/__tests__/deleteFileTool.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ vi.mock("fs/promises", () => ({
2323

2424
vi.mock("../../../utils/pathUtils", () => ({
2525
isPathOutsideWorkspace: vi.fn().mockReturnValue(false),
26+
parseParamsFromArgs: vi.fn().mockReturnValue({}),
2627
}))
2728

2829
vi.mock("../../prompts/responses", () => ({

src/core/tools/__tests__/writeToFileTool.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ vi.mock("../../../integrations/editor/detect-omission", () => ({
4848

4949
vi.mock("../../../utils/pathUtils", () => ({
5050
isPathOutsideWorkspace: vi.fn().mockReturnValue(false),
51+
parseParamsFromArgs: vi.fn().mockReturnValue({}),
5152
}))
5253

5354
vi.mock("../../../utils/path", () => ({

0 commit comments

Comments
 (0)