This commit is contained in:
2026-03-13 10:28:10 +08:00
parent f53f43a6b9
commit 4ec09661cd
9 changed files with 1071 additions and 18 deletions

14
tests/setup.ts Normal file
View File

@@ -0,0 +1,14 @@
/**
* Test setup file
* Configures mocks before tests run
*/
import { vi } from "vitest";
// Mock electron module before any imports
vi.mock("electron", () => {
return import("./mocks/electron");
});
// Increase timeout for integration tests
vi.setConfig({ testTimeout: 30000 });