refactor: narrow bundled channel entry surfaces

This commit is contained in:
Peter Steinberger
2026-04-06 01:23:37 +01:00
parent f42a06b1a4
commit 0affaf15ac
15 changed files with 75 additions and 34 deletions

View File

@@ -28,13 +28,13 @@ import type { CoreConfig } from "./types.js";
const hoisted = vi.hoisted(() => ({
monitorIrcProvider: vi.fn(),
sendMessageIrc: vi.fn(),
}));
vi.mock("./monitor.js", async () => {
const actual = await vi.importActual<typeof import("./monitor.js")>("./monitor.js");
vi.mock("./channel-runtime.js", () => {
return {
...actual,
monitorIrcProvider: hoisted.monitorIrcProvider,
sendMessageIrc: hoisted.sendMessageIrc,
};
});