mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-05 07:10:19 +00:00
enhance: add comprehensive unit tests PR223
This commit is contained in:
parent
1917d599e6
commit
7e72e6b115
6 changed files with 80 additions and 44 deletions
|
|
@ -172,11 +172,6 @@ vi.mock("../../../../electron/main/copy", () => ({ copyBrowserData: vi.fn() }));
|
|||
vi.mock("../../../../electron/main/utils/log", () => ({ zipFolder: vi.fn() }));
|
||||
vi.mock("tree-kill", () => ({ default: vi.fn() }));
|
||||
|
||||
// Mock the index file itself to test handlers that call other functions in the same file
|
||||
vi.mock("../../../../electron/main/index", () => ({
|
||||
handleDependencyInstallation: vi.fn(),
|
||||
}));
|
||||
|
||||
// Import the mocked functions
|
||||
import * as envUtil from "../../../../electron/main/utils/envUtil";
|
||||
import * as mcpConfig from "../../../../electron/main/utils/mcpConfig";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue