From f2ad6c15317c005e348366d4d1a59fa78b56e117 Mon Sep 17 00:00:00 2001 From: silentrald Date: Thu, 9 Jan 2025 23:55:17 +0800 Subject: [PATCH] [bugfix-733] fix issue with unit tests --- src/__tests__/unit/os.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/__tests__/unit/os.test.ts b/src/__tests__/unit/os.test.ts index 06f0d93b..ec4a89bc 100644 --- a/src/__tests__/unit/os.test.ts +++ b/src/__tests__/unit/os.test.ts @@ -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";