Skip to content

Commit e5d0026

Browse files
committed
mock applyWindowSettings
1 parent 25f4d25 commit e5d0026

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/monitor/src/__tests__/launchpad-monitor.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
import { createMockLogger } from "@bluecadet/launchpad-testing/test-utils.ts";
22
import { okAsync } from "neverthrow";
33
import { describe, expect, it, vi } from "vitest";
4+
import { AppManager } from "../core/app-manager.js";
45
import type { MonitorPlugin } from "../core/monitor-plugin-driver.js";
56
import LaunchpadMonitor from "../launchpad-monitor.js";
67

78
// Mock process.exit to prevent tests from actually exiting
89
// @ts-expect-error - mockImplementation returns undefined
910
const mockExit = vi.spyOn(process, "exit").mockImplementation(() => undefined);
1011

12+
AppManager.prototype.applyWindowSettings = vi.fn().mockImplementation(() => okAsync({}));
13+
1114
const mockPlugin = {
1215
name: "test-plugin",
1316
hooks: {

0 commit comments

Comments
 (0)