add test
This commit is contained in:
14
tests/setup.ts
Normal file
14
tests/setup.ts
Normal 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 });
|
||||
Reference in New Issue
Block a user