[bugfix-733] fix issue with unit tests

This commit is contained in:
silentrald
2025-01-09 23:55:17 +08:00
parent 65d26dc819
commit f2ad6c1531
+1 -1
View File
@@ -24,7 +24,7 @@ jest.mock("electron-log", () => ({
info: jest.fn(),
error: jest.fn(),
}));
jest.mock("ps-list", () => () => []);
jest.mock("ps-list", (): (() => any[]) => () => []);
const IS_WINDOWS = process.platform === "win32";
const IS_LINUX = process.platform === "linux";